https://vault.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14]
curl#35 - "Peer reports incompatible or unsupported protocol version."
sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/*
from pathlib import Path | |
import os | |
from dotenv import load_dotenv | |
class BaseConfig: | |
def __init__(self, config_file: Path = Path("cxsdn-env")): | |
load_dotenv(config_file) |
from __future__ import annotations | |
from dataclasses import dataclass | |
from typing import Generic, TypeVar | |
_HEAD_VALUE = "HEAD" | |
class CantGoBackError(Exception): | |
pass |
class Parent | |
... | |
@classmethod | |
def __init_subclass__(cls, **kwargs): | |
dir_subclass = set(field for field in dir(cls) if not field.startswith(f"_{cls.__name__}__")) | |
dir_base = set(field for field in dir(cls.__base__)) | |
extra_dir = dir_subclass.difference(dir_base) | |
if extra_dir: | |
raise CellCantHasExtraFieldException( |
from abc import abstractmethod | |
from typing import Protocol, Callable, Any, runtime_checkable | |
@runtime_checkable | |
class LoggerProtocol(Protocol): | |
@abstractmethod | |
def echo(self, msg: str) -> None: | |
... |
// Child (UploadFileComponent.vue) | |
// TODO: finish setActive and setInactive methods | |
<template> | |
<div | |
id="upload-zone" | |
class="col-1 mt-2 py-5 border w-100 bg-light rounded" | |
@dragover.prevent | |
@dragenter="setActive" | |
@dragleave="setInactive" |