This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Generic, TypeVar, Union, Optional | |
T = TypeVar("T") | |
E = TypeVar("E") | |
class _Ok(Generic[T]): | |
def __init__(self, value: Optional[T] = None) -> None: | |
self.value = value | |
self.is_ok = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
from datetime import datetime | |
from PIL import Image | |
from tqdm import tqdm | |
class FileManager: | |
""" | |
Gerencia o processo de mover arquivos de uma pasta de origem para uma pasta de destino, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tabSize": 2, | |
"editor.fontWeight": "500", | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.renderWhitespace": "none", | |
"editor.accessibilitySupport": "off", | |
"editor.fontLigatures": true, | |
"editor.inlineSuggest.enabled": true, | |
"editor.semanticHighlighting.enabled": true, | |
"editor.screenReaderAnnounceInlineSuggestion": true, |