Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
py310.py21 linesDownload Raw Back to compat
1import sys2 3__all__ = ['tomllib']4 5 6if sys.version_info >= (3, 11):7    import tomllib8else:  # pragma: no cover9    import tomli as tomllib10 11 12if sys.version_info >= (3, 11):13 14    def add_note(ex, note):15        ex.add_note(note)16 17else:  # pragma: no cover18 19    def add_note(ex, note):20        vars(ex).setdefault('__notes__', []).append(note)21 
codekingpro/portable-devtools · Team Ai