@ecmaos-apps/python3 0.0.0-stage → 3.14.9-ecmaos.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +47 -4
- package/python3.wasm +0 -0
- package/runtime/usr/lib/python3.14/LICENSE.txt +277 -0
- package/runtime/usr/lib/python3.14/__future__.py +147 -0
- package/runtime/usr/lib/python3.14/__hello__.py +16 -0
- package/runtime/usr/lib/python3.14/__phello__/__init__.py +7 -0
- package/runtime/usr/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__phello__/spam.py +7 -0
- package/runtime/usr/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_sysconfigdata__linux_.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_aix_support.py +108 -0
- package/runtime/usr/lib/python3.14/_android_support.py +192 -0
- package/runtime/usr/lib/python3.14/_apple_support.py +66 -0
- package/runtime/usr/lib/python3.14/_ast_unparse.py +1161 -0
- package/runtime/usr/lib/python3.14/_collections_abc.py +1172 -0
- package/runtime/usr/lib/python3.14/_colorize.py +355 -0
- package/runtime/usr/lib/python3.14/_compat_pickle.py +251 -0
- package/runtime/usr/lib/python3.14/_ios_support.py +74 -0
- package/runtime/usr/lib/python3.14/_markupbase.py +396 -0
- package/runtime/usr/lib/python3.14/_opcode_metadata.py +371 -0
- package/runtime/usr/lib/python3.14/_osx_support.py +579 -0
- package/runtime/usr/lib/python3.14/_py_abc.py +152 -0
- package/runtime/usr/lib/python3.14/_py_warnings.py +869 -0
- package/runtime/usr/lib/python3.14/_pydatetime.py +2734 -0
- package/runtime/usr/lib/python3.14/_pydecimal.py +6407 -0
- package/runtime/usr/lib/python3.14/_pyio.py +2764 -0
- package/runtime/usr/lib/python3.14/_pylong.py +729 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__init__.py +19 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__main__.py +10 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/_pyrepl/_module_completer.py +426 -0
- package/runtime/usr/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
- package/runtime/usr/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
- package/runtime/usr/lib/python3.14/_pyrepl/commands.py +505 -0
- package/runtime/usr/lib/python3.14/_pyrepl/completing_reader.py +299 -0
- package/runtime/usr/lib/python3.14/_pyrepl/console.py +229 -0
- package/runtime/usr/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
- package/runtime/usr/lib/python3.14/_pyrepl/historical_reader.py +424 -0
- package/runtime/usr/lib/python3.14/_pyrepl/input.py +114 -0
- package/runtime/usr/lib/python3.14/_pyrepl/keymap.py +213 -0
- package/runtime/usr/lib/python3.14/_pyrepl/main.py +58 -0
- package/runtime/usr/lib/python3.14/_pyrepl/mypy.ini +25 -0
- package/runtime/usr/lib/python3.14/_pyrepl/pager.py +175 -0
- package/runtime/usr/lib/python3.14/_pyrepl/reader.py +773 -0
- package/runtime/usr/lib/python3.14/_pyrepl/readline.py +621 -0
- package/runtime/usr/lib/python3.14/_pyrepl/simple_interact.py +181 -0
- package/runtime/usr/lib/python3.14/_pyrepl/terminfo.py +488 -0
- package/runtime/usr/lib/python3.14/_pyrepl/trace.py +34 -0
- package/runtime/usr/lib/python3.14/_pyrepl/types.py +10 -0
- package/runtime/usr/lib/python3.14/_pyrepl/unix_console.py +860 -0
- package/runtime/usr/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
- package/runtime/usr/lib/python3.14/_pyrepl/utils.py +391 -0
- package/runtime/usr/lib/python3.14/_pyrepl/windows_console.py +735 -0
- package/runtime/usr/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
- package/runtime/usr/lib/python3.14/_sitebuiltins.py +91 -0
- package/runtime/usr/lib/python3.14/_strptime.py +822 -0
- package/runtime/usr/lib/python3.14/_sysconfig_vars__linux_.json +1137 -0
- package/runtime/usr/lib/python3.14/_sysconfigdata__linux_.py +1123 -0
- package/runtime/usr/lib/python3.14/_threading_local.py +120 -0
- package/runtime/usr/lib/python3.14/_weakrefset.py +147 -0
- package/runtime/usr/lib/python3.14/abc.py +188 -0
- package/runtime/usr/lib/python3.14/annotationlib.py +1205 -0
- package/runtime/usr/lib/python3.14/antigravity.py +17 -0
- package/runtime/usr/lib/python3.14/argparse.py +2789 -0
- package/runtime/usr/lib/python3.14/ast.py +680 -0
- package/runtime/usr/lib/python3.14/asyncio/__init__.py +74 -0
- package/runtime/usr/lib/python3.14/asyncio/__main__.py +248 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/asyncio/base_events.py +2089 -0
- package/runtime/usr/lib/python3.14/asyncio/base_futures.py +67 -0
- package/runtime/usr/lib/python3.14/asyncio/base_subprocess.py +327 -0
- package/runtime/usr/lib/python3.14/asyncio/base_tasks.py +94 -0
- package/runtime/usr/lib/python3.14/asyncio/constants.py +41 -0
- package/runtime/usr/lib/python3.14/asyncio/coroutines.py +118 -0
- package/runtime/usr/lib/python3.14/asyncio/events.py +881 -0
- package/runtime/usr/lib/python3.14/asyncio/exceptions.py +62 -0
- package/runtime/usr/lib/python3.14/asyncio/format_helpers.py +84 -0
- package/runtime/usr/lib/python3.14/asyncio/futures.py +481 -0
- package/runtime/usr/lib/python3.14/asyncio/graph.py +279 -0
- package/runtime/usr/lib/python3.14/asyncio/locks.py +617 -0
- package/runtime/usr/lib/python3.14/asyncio/log.py +7 -0
- package/runtime/usr/lib/python3.14/asyncio/mixins.py +21 -0
- package/runtime/usr/lib/python3.14/asyncio/proactor_events.py +923 -0
- package/runtime/usr/lib/python3.14/asyncio/protocols.py +216 -0
- package/runtime/usr/lib/python3.14/asyncio/queues.py +309 -0
- package/runtime/usr/lib/python3.14/asyncio/runners.py +226 -0
- package/runtime/usr/lib/python3.14/asyncio/selector_events.py +1337 -0
- package/runtime/usr/lib/python3.14/asyncio/sslproto.py +929 -0
- package/runtime/usr/lib/python3.14/asyncio/staggered.py +179 -0
- package/runtime/usr/lib/python3.14/asyncio/streams.py +804 -0
- package/runtime/usr/lib/python3.14/asyncio/subprocess.py +229 -0
- package/runtime/usr/lib/python3.14/asyncio/taskgroups.py +280 -0
- package/runtime/usr/lib/python3.14/asyncio/tasks.py +1145 -0
- package/runtime/usr/lib/python3.14/asyncio/threads.py +26 -0
- package/runtime/usr/lib/python3.14/asyncio/timeouts.py +183 -0
- package/runtime/usr/lib/python3.14/asyncio/tools.py +278 -0
- package/runtime/usr/lib/python3.14/asyncio/transports.py +337 -0
- package/runtime/usr/lib/python3.14/asyncio/trsock.py +98 -0
- package/runtime/usr/lib/python3.14/asyncio/unix_events.py +1023 -0
- package/runtime/usr/lib/python3.14/asyncio/windows_events.py +906 -0
- package/runtime/usr/lib/python3.14/asyncio/windows_utils.py +181 -0
- package/runtime/usr/lib/python3.14/base64.py +625 -0
- package/runtime/usr/lib/python3.14/bdb.py +1214 -0
- package/runtime/usr/lib/python3.14/bisect.py +118 -0
- package/runtime/usr/lib/python3.14/build-details.json +53 -0
- package/runtime/usr/lib/python3.14/bz2.py +352 -0
- package/runtime/usr/lib/python3.14/cProfile.py +207 -0
- package/runtime/usr/lib/python3.14/calendar.py +926 -0
- package/runtime/usr/lib/python3.14/cmd.py +414 -0
- package/runtime/usr/lib/python3.14/code.py +396 -0
- package/runtime/usr/lib/python3.14/codecs.py +1125 -0
- package/runtime/usr/lib/python3.14/codeop.py +154 -0
- package/runtime/usr/lib/python3.14/collections/__init__.py +1612 -0
- package/runtime/usr/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/colorsys.py +166 -0
- package/runtime/usr/lib/python3.14/compileall.py +472 -0
- package/runtime/usr/lib/python3.14/compression/__init__.py +0 -0
- package/runtime/usr/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/_common/__init__.py +0 -0
- package/runtime/usr/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/_common/_streams.py +162 -0
- package/runtime/usr/lib/python3.14/compression/bz2.py +5 -0
- package/runtime/usr/lib/python3.14/compression/gzip.py +5 -0
- package/runtime/usr/lib/python3.14/compression/lzma.py +5 -0
- package/runtime/usr/lib/python3.14/compression/zlib.py +5 -0
- package/runtime/usr/lib/python3.14/compression/zstd/__init__.py +244 -0
- package/runtime/usr/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/compression/zstd/_zstdfile.py +347 -0
- package/runtime/usr/lib/python3.14/concurrent/__init__.py +1 -0
- package/runtime/usr/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/__init__.py +65 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/_base.py +680 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/interpreter.py +123 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/process.py +1047 -0
- package/runtime/usr/lib/python3.14/concurrent/futures/thread.py +274 -0
- package/runtime/usr/lib/python3.14/concurrent/interpreters/__init__.py +253 -0
- package/runtime/usr/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
- package/runtime/usr/lib/python3.14/concurrent/interpreters/_queues.py +290 -0
- package/runtime/usr/lib/python3.14/configparser.py +1426 -0
- package/runtime/usr/lib/python3.14/contextlib.py +814 -0
- package/runtime/usr/lib/python3.14/contextvars.py +8 -0
- package/runtime/usr/lib/python3.14/copy.py +286 -0
- package/runtime/usr/lib/python3.14/copyreg.py +222 -0
- package/runtime/usr/lib/python3.14/csv.py +527 -0
- package/runtime/usr/lib/python3.14/ctypes/__init__.py +686 -0
- package/runtime/usr/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/_aix.py +327 -0
- package/runtime/usr/lib/python3.14/ctypes/_endian.py +78 -0
- package/runtime/usr/lib/python3.14/ctypes/_layout.py +330 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/__init__.py +9 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/dyld.py +165 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/dylib.py +42 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
- package/runtime/usr/lib/python3.14/ctypes/macholib/framework.py +42 -0
- package/runtime/usr/lib/python3.14/ctypes/util.py +502 -0
- package/runtime/usr/lib/python3.14/ctypes/wintypes.py +210 -0
- package/runtime/usr/lib/python3.14/curses/__init__.py +101 -0
- package/runtime/usr/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/curses/ascii.py +99 -0
- package/runtime/usr/lib/python3.14/curses/has_key.py +192 -0
- package/runtime/usr/lib/python3.14/curses/panel.py +6 -0
- package/runtime/usr/lib/python3.14/curses/textpad.py +236 -0
- package/runtime/usr/lib/python3.14/dataclasses.py +1813 -0
- package/runtime/usr/lib/python3.14/datetime.py +13 -0
- package/runtime/usr/lib/python3.14/dbm/__init__.py +194 -0
- package/runtime/usr/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/dbm/dumb.py +319 -0
- package/runtime/usr/lib/python3.14/dbm/gnu.py +3 -0
- package/runtime/usr/lib/python3.14/dbm/ndbm.py +3 -0
- package/runtime/usr/lib/python3.14/dbm/sqlite3.py +144 -0
- package/runtime/usr/lib/python3.14/decimal.py +109 -0
- package/runtime/usr/lib/python3.14/difflib.py +2066 -0
- package/runtime/usr/lib/python3.14/dis.py +1157 -0
- package/runtime/usr/lib/python3.14/doctest.py +2922 -0
- package/runtime/usr/lib/python3.14/email/__init__.py +61 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/_encoded_words.py +233 -0
- package/runtime/usr/lib/python3.14/email/_header_value_parser.py +3164 -0
- package/runtime/usr/lib/python3.14/email/_parseaddr.py +563 -0
- package/runtime/usr/lib/python3.14/email/_policybase.py +392 -0
- package/runtime/usr/lib/python3.14/email/architecture.rst +216 -0
- package/runtime/usr/lib/python3.14/email/base64mime.py +115 -0
- package/runtime/usr/lib/python3.14/email/charset.py +396 -0
- package/runtime/usr/lib/python3.14/email/contentmanager.py +254 -0
- package/runtime/usr/lib/python3.14/email/encoders.py +65 -0
- package/runtime/usr/lib/python3.14/email/errors.py +117 -0
- package/runtime/usr/lib/python3.14/email/feedparser.py +536 -0
- package/runtime/usr/lib/python3.14/email/generator.py +530 -0
- package/runtime/usr/lib/python3.14/email/header.py +582 -0
- package/runtime/usr/lib/python3.14/email/headerregistry.py +618 -0
- package/runtime/usr/lib/python3.14/email/iterators.py +68 -0
- package/runtime/usr/lib/python3.14/email/message.py +1217 -0
- package/runtime/usr/lib/python3.14/email/mime/__init__.py +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/email/mime/application.py +37 -0
- package/runtime/usr/lib/python3.14/email/mime/audio.py +97 -0
- package/runtime/usr/lib/python3.14/email/mime/base.py +29 -0
- package/runtime/usr/lib/python3.14/email/mime/image.py +152 -0
- package/runtime/usr/lib/python3.14/email/mime/message.py +33 -0
- package/runtime/usr/lib/python3.14/email/mime/multipart.py +47 -0
- package/runtime/usr/lib/python3.14/email/mime/nonmultipart.py +21 -0
- package/runtime/usr/lib/python3.14/email/mime/text.py +40 -0
- package/runtime/usr/lib/python3.14/email/parser.py +127 -0
- package/runtime/usr/lib/python3.14/email/policy.py +239 -0
- package/runtime/usr/lib/python3.14/email/quoprimime.py +300 -0
- package/runtime/usr/lib/python3.14/email/utils.py +489 -0
- package/runtime/usr/lib/python3.14/encodings/__init__.py +182 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
- package/runtime/usr/lib/python3.14/encodings/aliases.py +568 -0
- package/runtime/usr/lib/python3.14/encodings/ascii.py +50 -0
- package/runtime/usr/lib/python3.14/encodings/base64_codec.py +55 -0
- package/runtime/usr/lib/python3.14/encodings/big5.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/big5hkscs.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/bz2_codec.py +78 -0
- package/runtime/usr/lib/python3.14/encodings/charmap.py +69 -0
- package/runtime/usr/lib/python3.14/encodings/cp037.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1006.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1026.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1125.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp1140.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1250.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1251.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1252.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1253.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1254.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1255.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1256.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1257.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp1258.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp273.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp424.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp437.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp500.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp720.py +309 -0
- package/runtime/usr/lib/python3.14/encodings/cp737.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp775.py +697 -0
- package/runtime/usr/lib/python3.14/encodings/cp850.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp852.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp855.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp856.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp857.py +694 -0
- package/runtime/usr/lib/python3.14/encodings/cp858.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp860.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp861.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp862.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp863.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp864.py +690 -0
- package/runtime/usr/lib/python3.14/encodings/cp865.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp866.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/cp869.py +689 -0
- package/runtime/usr/lib/python3.14/encodings/cp874.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp875.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/cp932.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/cp949.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/cp950.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/euc_jis_2004.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/euc_jisx0213.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/euc_jp.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/euc_kr.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/gb18030.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/gb2312.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/gbk.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/hex_codec.py +55 -0
- package/runtime/usr/lib/python3.14/encodings/hp_roman8.py +314 -0
- package/runtime/usr/lib/python3.14/encodings/hz.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/idna.py +387 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_jp.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso2022_kr.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_1.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_10.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_11.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_13.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_14.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_15.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_16.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_2.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_3.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_4.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_5.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_6.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_7.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_8.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/iso8859_9.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/johab.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/koi8_r.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/koi8_t.py +308 -0
- package/runtime/usr/lib/python3.14/encodings/koi8_u.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/kz1048.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/latin_1.py +50 -0
- package/runtime/usr/lib/python3.14/encodings/mac_arabic.py +698 -0
- package/runtime/usr/lib/python3.14/encodings/mac_croatian.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_cyrillic.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_farsi.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_greek.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_iceland.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_latin2.py +312 -0
- package/runtime/usr/lib/python3.14/encodings/mac_roman.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_romanian.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mac_turkish.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/mbcs.py +47 -0
- package/runtime/usr/lib/python3.14/encodings/oem.py +41 -0
- package/runtime/usr/lib/python3.14/encodings/palmos.py +308 -0
- package/runtime/usr/lib/python3.14/encodings/ptcp154.py +312 -0
- package/runtime/usr/lib/python3.14/encodings/punycode.py +253 -0
- package/runtime/usr/lib/python3.14/encodings/quopri_codec.py +56 -0
- package/runtime/usr/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
- package/runtime/usr/lib/python3.14/encodings/rot_13.py +113 -0
- package/runtime/usr/lib/python3.14/encodings/shift_jis.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/shift_jis_2004.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/shift_jisx0213.py +39 -0
- package/runtime/usr/lib/python3.14/encodings/tis_620.py +307 -0
- package/runtime/usr/lib/python3.14/encodings/undefined.py +49 -0
- package/runtime/usr/lib/python3.14/encodings/unicode_escape.py +46 -0
- package/runtime/usr/lib/python3.14/encodings/utf_16.py +155 -0
- package/runtime/usr/lib/python3.14/encodings/utf_16_be.py +42 -0
- package/runtime/usr/lib/python3.14/encodings/utf_16_le.py +42 -0
- package/runtime/usr/lib/python3.14/encodings/utf_32.py +150 -0
- package/runtime/usr/lib/python3.14/encodings/utf_32_be.py +37 -0
- package/runtime/usr/lib/python3.14/encodings/utf_32_le.py +37 -0
- package/runtime/usr/lib/python3.14/encodings/utf_7.py +38 -0
- package/runtime/usr/lib/python3.14/encodings/utf_8.py +42 -0
- package/runtime/usr/lib/python3.14/encodings/utf_8_sig.py +130 -0
- package/runtime/usr/lib/python3.14/encodings/uu_codec.py +103 -0
- package/runtime/usr/lib/python3.14/encodings/zlib_codec.py +77 -0
- package/runtime/usr/lib/python3.14/enum.py +2169 -0
- package/runtime/usr/lib/python3.14/filecmp.py +320 -0
- package/runtime/usr/lib/python3.14/fileinput.py +442 -0
- package/runtime/usr/lib/python3.14/fnmatch.py +209 -0
- package/runtime/usr/lib/python3.14/fractions.py +1078 -0
- package/runtime/usr/lib/python3.14/ftplib.py +975 -0
- package/runtime/usr/lib/python3.14/functools.py +1165 -0
- package/runtime/usr/lib/python3.14/genericpath.py +200 -0
- package/runtime/usr/lib/python3.14/getopt.py +232 -0
- package/runtime/usr/lib/python3.14/getpass.py +256 -0
- package/runtime/usr/lib/python3.14/gettext.py +660 -0
- package/runtime/usr/lib/python3.14/glob.py +574 -0
- package/runtime/usr/lib/python3.14/graphlib.py +254 -0
- package/runtime/usr/lib/python3.14/gzip.py +724 -0
- package/runtime/usr/lib/python3.14/hashlib.py +255 -0
- package/runtime/usr/lib/python3.14/heapq.py +611 -0
- package/runtime/usr/lib/python3.14/hmac.py +272 -0
- package/runtime/usr/lib/python3.14/html/__init__.py +132 -0
- package/runtime/usr/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/html/entities.py +2513 -0
- package/runtime/usr/lib/python3.14/html/parser.py +583 -0
- package/runtime/usr/lib/python3.14/http/__init__.py +213 -0
- package/runtime/usr/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/http/client.py +1598 -0
- package/runtime/usr/lib/python3.14/http/cookiejar.py +2124 -0
- package/runtime/usr/lib/python3.14/http/cookies.py +637 -0
- package/runtime/usr/lib/python3.14/http/server.py +1445 -0
- package/runtime/usr/lib/python3.14/imaplib.py +2090 -0
- package/runtime/usr/lib/python3.14/importlib/__init__.py +136 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/_abc.py +39 -0
- package/runtime/usr/lib/python3.14/importlib/_bootstrap.py +1570 -0
- package/runtime/usr/lib/python3.14/importlib/_bootstrap_external.py +1566 -0
- package/runtime/usr/lib/python3.14/importlib/abc.py +234 -0
- package/runtime/usr/lib/python3.14/importlib/machinery.py +50 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__init__.py +1093 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/_adapters.py +89 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/_collections.py +30 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/_functools.py +104 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/_itertools.py +73 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/_meta.py +67 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/_text.py +99 -0
- package/runtime/usr/lib/python3.14/importlib/metadata/diagnose.py +21 -0
- package/runtime/usr/lib/python3.14/importlib/readers.py +12 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__init__.py +43 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/importlib/resources/_adapters.py +168 -0
- package/runtime/usr/lib/python3.14/importlib/resources/_common.py +211 -0
- package/runtime/usr/lib/python3.14/importlib/resources/_functional.py +81 -0
- package/runtime/usr/lib/python3.14/importlib/resources/_itertools.py +38 -0
- package/runtime/usr/lib/python3.14/importlib/resources/abc.py +173 -0
- package/runtime/usr/lib/python3.14/importlib/resources/readers.py +203 -0
- package/runtime/usr/lib/python3.14/importlib/resources/simple.py +106 -0
- package/runtime/usr/lib/python3.14/importlib/simple.py +14 -0
- package/runtime/usr/lib/python3.14/importlib/util.py +279 -0
- package/runtime/usr/lib/python3.14/inspect.py +3425 -0
- package/runtime/usr/lib/python3.14/io.py +150 -0
- package/runtime/usr/lib/python3.14/ipaddress.py +2421 -0
- package/runtime/usr/lib/python3.14/json/__init__.py +365 -0
- package/runtime/usr/lib/python3.14/json/__main__.py +20 -0
- package/runtime/usr/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/json/decoder.py +364 -0
- package/runtime/usr/lib/python3.14/json/encoder.py +461 -0
- package/runtime/usr/lib/python3.14/json/scanner.py +73 -0
- package/runtime/usr/lib/python3.14/json/tool.py +122 -0
- package/runtime/usr/lib/python3.14/keyword.py +64 -0
- package/runtime/usr/lib/python3.14/lib-dynload/.keep +0 -0
- package/runtime/usr/lib/python3.14/linecache.py +302 -0
- package/runtime/usr/lib/python3.14/locale.py +1992 -0
- package/runtime/usr/lib/python3.14/logging/__init__.py +2335 -0
- package/runtime/usr/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/logging/config.py +1093 -0
- package/runtime/usr/lib/python3.14/logging/handlers.py +1654 -0
- package/runtime/usr/lib/python3.14/lzma.py +364 -0
- package/runtime/usr/lib/python3.14/mailbox.py +2219 -0
- package/runtime/usr/lib/python3.14/mimetypes.py +755 -0
- package/runtime/usr/lib/python3.14/modulefinder.py +671 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__init__.py +37 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/connection.py +1232 -0
- package/runtime/usr/lib/python3.14/multiprocessing/context.py +405 -0
- package/runtime/usr/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
- package/runtime/usr/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
- package/runtime/usr/lib/python3.14/multiprocessing/forkserver.py +429 -0
- package/runtime/usr/lib/python3.14/multiprocessing/heap.py +337 -0
- package/runtime/usr/lib/python3.14/multiprocessing/managers.py +1438 -0
- package/runtime/usr/lib/python3.14/multiprocessing/pool.py +957 -0
- package/runtime/usr/lib/python3.14/multiprocessing/popen_fork.py +100 -0
- package/runtime/usr/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
- package/runtime/usr/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
- package/runtime/usr/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
- package/runtime/usr/lib/python3.14/multiprocessing/process.py +443 -0
- package/runtime/usr/lib/python3.14/multiprocessing/queues.py +399 -0
- package/runtime/usr/lib/python3.14/multiprocessing/reduction.py +281 -0
- package/runtime/usr/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
- package/runtime/usr/lib/python3.14/multiprocessing/resource_tracker.py +495 -0
- package/runtime/usr/lib/python3.14/multiprocessing/shared_memory.py +544 -0
- package/runtime/usr/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
- package/runtime/usr/lib/python3.14/multiprocessing/spawn.py +307 -0
- package/runtime/usr/lib/python3.14/multiprocessing/synchronize.py +411 -0
- package/runtime/usr/lib/python3.14/multiprocessing/util.py +592 -0
- package/runtime/usr/lib/python3.14/netrc.py +200 -0
- package/runtime/usr/lib/python3.14/ntpath.py +889 -0
- package/runtime/usr/lib/python3.14/nturl2path.py +82 -0
- package/runtime/usr/lib/python3.14/numbers.py +427 -0
- package/runtime/usr/lib/python3.14/opcode.py +122 -0
- package/runtime/usr/lib/python3.14/operator.py +475 -0
- package/runtime/usr/lib/python3.14/optparse.py +1664 -0
- package/runtime/usr/lib/python3.14/os.py +1191 -0
- package/runtime/usr/lib/python3.14/pathlib/__init__.py +1307 -0
- package/runtime/usr/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/pathlib/_local.py +12 -0
- package/runtime/usr/lib/python3.14/pathlib/_os.py +530 -0
- package/runtime/usr/lib/python3.14/pathlib/types.py +430 -0
- package/runtime/usr/lib/python3.14/pdb.py +3682 -0
- package/runtime/usr/lib/python3.14/pickle.py +1925 -0
- package/runtime/usr/lib/python3.14/pickletools.py +2887 -0
- package/runtime/usr/lib/python3.14/pkgutil.py +474 -0
- package/runtime/usr/lib/python3.14/platform.py +1515 -0
- package/runtime/usr/lib/python3.14/plistlib.py +956 -0
- package/runtime/usr/lib/python3.14/poplib.py +477 -0
- package/runtime/usr/lib/python3.14/posixpath.py +592 -0
- package/runtime/usr/lib/python3.14/pprint.py +675 -0
- package/runtime/usr/lib/python3.14/profile.py +615 -0
- package/runtime/usr/lib/python3.14/pstats.py +777 -0
- package/runtime/usr/lib/python3.14/pty.py +182 -0
- package/runtime/usr/lib/python3.14/py_compile.py +212 -0
- package/runtime/usr/lib/python3.14/pyclbr.py +314 -0
- package/runtime/usr/lib/python3.14/pydoc.py +2890 -0
- package/runtime/usr/lib/python3.14/queue.py +385 -0
- package/runtime/usr/lib/python3.14/quopri.py +235 -0
- package/runtime/usr/lib/python3.14/random.py +1087 -0
- package/runtime/usr/lib/python3.14/re/__init__.py +428 -0
- package/runtime/usr/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/re/_casefix.py +106 -0
- package/runtime/usr/lib/python3.14/re/_compiler.py +782 -0
- package/runtime/usr/lib/python3.14/re/_constants.py +224 -0
- package/runtime/usr/lib/python3.14/re/_parser.py +1066 -0
- package/runtime/usr/lib/python3.14/reprlib.py +230 -0
- package/runtime/usr/lib/python3.14/rlcompleter.py +222 -0
- package/runtime/usr/lib/python3.14/runpy.py +326 -0
- package/runtime/usr/lib/python3.14/sched.py +167 -0
- package/runtime/usr/lib/python3.14/secrets.py +71 -0
- package/runtime/usr/lib/python3.14/selectors.py +603 -0
- package/runtime/usr/lib/python3.14/shelve.py +250 -0
- package/runtime/usr/lib/python3.14/shlex.py +351 -0
- package/runtime/usr/lib/python3.14/shutil.py +1660 -0
- package/runtime/usr/lib/python3.14/signal.py +94 -0
- package/runtime/usr/lib/python3.14/site-packages/README.txt +2 -0
- package/runtime/usr/lib/python3.14/site.py +779 -0
- package/runtime/usr/lib/python3.14/smtplib.py +1121 -0
- package/runtime/usr/lib/python3.14/socket.py +994 -0
- package/runtime/usr/lib/python3.14/socketserver.py +863 -0
- package/runtime/usr/lib/python3.14/sqlite3/__init__.py +57 -0
- package/runtime/usr/lib/python3.14/sqlite3/__main__.py +139 -0
- package/runtime/usr/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/sqlite3/dbapi2.py +96 -0
- package/runtime/usr/lib/python3.14/sqlite3/dump.py +118 -0
- package/runtime/usr/lib/python3.14/sre_compile.py +7 -0
- package/runtime/usr/lib/python3.14/sre_constants.py +7 -0
- package/runtime/usr/lib/python3.14/sre_parse.py +7 -0
- package/runtime/usr/lib/python3.14/ssl.py +1540 -0
- package/runtime/usr/lib/python3.14/stat.py +212 -0
- package/runtime/usr/lib/python3.14/statistics.py +1879 -0
- package/runtime/usr/lib/python3.14/string/__init__.py +332 -0
- package/runtime/usr/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/string/templatelib.py +33 -0
- package/runtime/usr/lib/python3.14/stringprep.py +456 -0
- package/runtime/usr/lib/python3.14/struct.py +15 -0
- package/runtime/usr/lib/python3.14/subprocess.py +2257 -0
- package/runtime/usr/lib/python3.14/symtable.py +451 -0
- package/runtime/usr/lib/python3.14/sysconfig/__init__.py +798 -0
- package/runtime/usr/lib/python3.14/sysconfig/__main__.py +276 -0
- package/runtime/usr/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/tabnanny.py +338 -0
- package/runtime/usr/lib/python3.14/tarfile.py +3225 -0
- package/runtime/usr/lib/python3.14/tempfile.py +1057 -0
- package/runtime/usr/lib/python3.14/textwrap.py +475 -0
- package/runtime/usr/lib/python3.14/this.py +28 -0
- package/runtime/usr/lib/python3.14/threading.py +1642 -0
- package/runtime/usr/lib/python3.14/timeit.py +378 -0
- package/runtime/usr/lib/python3.14/token.py +144 -0
- package/runtime/usr/lib/python3.14/tokenize.py +598 -0
- package/runtime/usr/lib/python3.14/tomllib/__init__.py +10 -0
- package/runtime/usr/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/tomllib/_parser.py +765 -0
- package/runtime/usr/lib/python3.14/tomllib/_re.py +113 -0
- package/runtime/usr/lib/python3.14/tomllib/_types.py +10 -0
- package/runtime/usr/lib/python3.14/tomllib/mypy.ini +15 -0
- package/runtime/usr/lib/python3.14/trace.py +751 -0
- package/runtime/usr/lib/python3.14/traceback.py +1751 -0
- package/runtime/usr/lib/python3.14/tracemalloc.py +560 -0
- package/runtime/usr/lib/python3.14/tty.py +73 -0
- package/runtime/usr/lib/python3.14/types.py +345 -0
- package/runtime/usr/lib/python3.14/typing.py +3866 -0
- package/runtime/usr/lib/python3.14/unittest/__init__.py +80 -0
- package/runtime/usr/lib/python3.14/unittest/__main__.py +18 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/unittest/_log.py +86 -0
- package/runtime/usr/lib/python3.14/unittest/async_case.py +158 -0
- package/runtime/usr/lib/python3.14/unittest/case.py +1628 -0
- package/runtime/usr/lib/python3.14/unittest/loader.py +491 -0
- package/runtime/usr/lib/python3.14/unittest/main.py +280 -0
- package/runtime/usr/lib/python3.14/unittest/mock.py +3208 -0
- package/runtime/usr/lib/python3.14/unittest/result.py +259 -0
- package/runtime/usr/lib/python3.14/unittest/runner.py +313 -0
- package/runtime/usr/lib/python3.14/unittest/signals.py +71 -0
- package/runtime/usr/lib/python3.14/unittest/suite.py +379 -0
- package/runtime/usr/lib/python3.14/unittest/util.py +170 -0
- package/runtime/usr/lib/python3.14/urllib/__init__.py +0 -0
- package/runtime/usr/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/urllib/error.py +74 -0
- package/runtime/usr/lib/python3.14/urllib/parse.py +1289 -0
- package/runtime/usr/lib/python3.14/urllib/request.py +2175 -0
- package/runtime/usr/lib/python3.14/urllib/response.py +84 -0
- package/runtime/usr/lib/python3.14/urllib/robotparser.py +363 -0
- package/runtime/usr/lib/python3.14/uuid.py +1013 -0
- package/runtime/usr/lib/python3.14/venv/__init__.py +700 -0
- package/runtime/usr/lib/python3.14/venv/__main__.py +10 -0
- package/runtime/usr/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
- package/runtime/usr/lib/python3.14/venv/scripts/common/activate +76 -0
- package/runtime/usr/lib/python3.14/venv/scripts/common/activate.fish +69 -0
- package/runtime/usr/lib/python3.14/venv/scripts/posix/activate.csh +29 -0
- package/runtime/usr/lib/python3.14/warnings.py +99 -0
- package/runtime/usr/lib/python3.14/wave.py +665 -0
- package/runtime/usr/lib/python3.14/weakref.py +574 -0
- package/runtime/usr/lib/python3.14/webbrowser.py +763 -0
- package/runtime/usr/lib/python3.14/wsgiref/__init__.py +25 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/wsgiref/handlers.py +575 -0
- package/runtime/usr/lib/python3.14/wsgiref/headers.py +192 -0
- package/runtime/usr/lib/python3.14/wsgiref/simple_server.py +161 -0
- package/runtime/usr/lib/python3.14/wsgiref/types.py +54 -0
- package/runtime/usr/lib/python3.14/wsgiref/util.py +159 -0
- package/runtime/usr/lib/python3.14/wsgiref/validate.py +438 -0
- package/runtime/usr/lib/python3.14/xml/__init__.py +20 -0
- package/runtime/usr/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/NodeFilter.py +27 -0
- package/runtime/usr/lib/python3.14/xml/dom/__init__.py +140 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/dom/domreg.py +99 -0
- package/runtime/usr/lib/python3.14/xml/dom/expatbuilder.py +964 -0
- package/runtime/usr/lib/python3.14/xml/dom/minicompat.py +109 -0
- package/runtime/usr/lib/python3.14/xml/dom/minidom.py +2027 -0
- package/runtime/usr/lib/python3.14/xml/dom/pulldom.py +350 -0
- package/runtime/usr/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
- package/runtime/usr/lib/python3.14/xml/etree/ElementInclude.py +186 -0
- package/runtime/usr/lib/python3.14/xml/etree/ElementPath.py +430 -0
- package/runtime/usr/lib/python3.14/xml/etree/ElementTree.py +2093 -0
- package/runtime/usr/lib/python3.14/xml/etree/__init__.py +33 -0
- package/runtime/usr/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/etree/cElementTree.py +3 -0
- package/runtime/usr/lib/python3.14/xml/parsers/__init__.py +8 -0
- package/runtime/usr/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/parsers/expat.py +8 -0
- package/runtime/usr/lib/python3.14/xml/sax/__init__.py +109 -0
- package/runtime/usr/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xml/sax/_exceptions.py +127 -0
- package/runtime/usr/lib/python3.14/xml/sax/expatreader.py +454 -0
- package/runtime/usr/lib/python3.14/xml/sax/handler.py +387 -0
- package/runtime/usr/lib/python3.14/xml/sax/saxutils.py +370 -0
- package/runtime/usr/lib/python3.14/xml/sax/xmlreader.py +379 -0
- package/runtime/usr/lib/python3.14/xmlrpc/__init__.py +1 -0
- package/runtime/usr/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/xmlrpc/client.py +1503 -0
- package/runtime/usr/lib/python3.14/xmlrpc/server.py +1003 -0
- package/runtime/usr/lib/python3.14/zipapp.py +231 -0
- package/runtime/usr/lib/python3.14/zipfile/__init__.py +2479 -0
- package/runtime/usr/lib/python3.14/zipfile/__main__.py +4 -0
- package/runtime/usr/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zipfile/_path/__init__.py +452 -0
- package/runtime/usr/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zipfile/_path/glob.py +113 -0
- package/runtime/usr/lib/python3.14/zipimport.py +822 -0
- package/runtime/usr/lib/python3.14/zoneinfo/__init__.py +34 -0
- package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
- package/runtime/usr/lib/python3.14/zoneinfo/_common.py +172 -0
- package/runtime/usr/lib/python3.14/zoneinfo/_tzpath.py +189 -0
- package/runtime/usr/lib/python3.14/zoneinfo/_zoneinfo.py +779 -0
- package/share/applications/python3.desktop +7 -0
- package/share/licenses/python3/LICENSE +277 -0
- package/share/licenses/python3/openssl-LICENSE +177 -0
- package/share/licenses/python3/zlib-LICENSE +22 -0
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
"""Helpers for introspecting and wrapping annotations."""
|
|
2
|
+
|
|
3
|
+
import ast
|
|
4
|
+
import builtins
|
|
5
|
+
import enum
|
|
6
|
+
import keyword
|
|
7
|
+
import sys
|
|
8
|
+
import types
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"Format",
|
|
12
|
+
"ForwardRef",
|
|
13
|
+
"call_annotate_function",
|
|
14
|
+
"call_evaluate_function",
|
|
15
|
+
"get_annotate_from_class_namespace",
|
|
16
|
+
"get_annotations",
|
|
17
|
+
"annotations_to_string",
|
|
18
|
+
"type_repr",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Format(enum.IntEnum):
|
|
23
|
+
VALUE = 1
|
|
24
|
+
VALUE_WITH_FAKE_GLOBALS = 2
|
|
25
|
+
FORWARDREF = 3
|
|
26
|
+
STRING = 4
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
_sentinel = object()
|
|
30
|
+
# Following `NAME_ERROR_MSG` in `ceval_macros.h`:
|
|
31
|
+
_NAME_ERROR_MSG = "name '{name:.200}' is not defined"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Slots shared by ForwardRef and _Stringifier. The __forward__ names must be
|
|
35
|
+
# preserved for compatibility with the old typing.ForwardRef class. The remaining
|
|
36
|
+
# names are private.
|
|
37
|
+
_SLOTS = (
|
|
38
|
+
"__forward_is_argument__",
|
|
39
|
+
"__forward_is_class__",
|
|
40
|
+
"__forward_module__",
|
|
41
|
+
"__weakref__",
|
|
42
|
+
"__arg__",
|
|
43
|
+
"__globals__",
|
|
44
|
+
"__extra_names__",
|
|
45
|
+
"__code__",
|
|
46
|
+
"__ast_node__",
|
|
47
|
+
"__cell__",
|
|
48
|
+
"__owner__",
|
|
49
|
+
"__stringifier_dict__",
|
|
50
|
+
"__resolved_str_cache__",
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class ForwardRef:
|
|
55
|
+
"""Wrapper that holds a forward reference.
|
|
56
|
+
|
|
57
|
+
Constructor arguments:
|
|
58
|
+
* arg: a string representing the code to be evaluated.
|
|
59
|
+
* module: the module where the forward reference was created.
|
|
60
|
+
Must be a string, not a module object.
|
|
61
|
+
* owner: The owning object (module, class, or function).
|
|
62
|
+
* is_argument: Does nothing, retained for compatibility.
|
|
63
|
+
* is_class: True if the forward reference was created in class scope.
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
__slots__ = _SLOTS
|
|
68
|
+
|
|
69
|
+
def __init__(
|
|
70
|
+
self,
|
|
71
|
+
arg,
|
|
72
|
+
*,
|
|
73
|
+
module=None,
|
|
74
|
+
owner=None,
|
|
75
|
+
is_argument=True,
|
|
76
|
+
is_class=False,
|
|
77
|
+
):
|
|
78
|
+
if not isinstance(arg, str):
|
|
79
|
+
raise TypeError(f"Forward reference must be a string -- got {arg!r}")
|
|
80
|
+
|
|
81
|
+
self.__arg__ = arg
|
|
82
|
+
self.__forward_is_argument__ = is_argument
|
|
83
|
+
self.__forward_is_class__ = is_class
|
|
84
|
+
self.__forward_module__ = module
|
|
85
|
+
self.__owner__ = owner
|
|
86
|
+
# These are always set to None here but may be non-None if a ForwardRef
|
|
87
|
+
# is created through __class__ assignment on a _Stringifier object.
|
|
88
|
+
self.__globals__ = None
|
|
89
|
+
# This may be either a cell object (for a ForwardRef referring to a single name)
|
|
90
|
+
# or a dict mapping cell names to cell objects (for a ForwardRef containing references
|
|
91
|
+
# to multiple names).
|
|
92
|
+
self.__cell__ = None
|
|
93
|
+
self.__extra_names__ = None
|
|
94
|
+
# These are initially None but serve as a cache and may be set to a non-None
|
|
95
|
+
# value later.
|
|
96
|
+
self.__code__ = None
|
|
97
|
+
self.__ast_node__ = None
|
|
98
|
+
self.__resolved_str_cache__ = None
|
|
99
|
+
|
|
100
|
+
def __init_subclass__(cls, /, *args, **kwds):
|
|
101
|
+
raise TypeError("Cannot subclass ForwardRef")
|
|
102
|
+
|
|
103
|
+
def evaluate(
|
|
104
|
+
self,
|
|
105
|
+
*,
|
|
106
|
+
globals=None,
|
|
107
|
+
locals=None,
|
|
108
|
+
type_params=None,
|
|
109
|
+
owner=None,
|
|
110
|
+
format=Format.VALUE,
|
|
111
|
+
):
|
|
112
|
+
"""Evaluate the forward reference and return the value.
|
|
113
|
+
|
|
114
|
+
If the forward reference cannot be evaluated, raise an exception.
|
|
115
|
+
"""
|
|
116
|
+
match format:
|
|
117
|
+
case Format.STRING:
|
|
118
|
+
return self.__resolved_str__
|
|
119
|
+
case Format.VALUE:
|
|
120
|
+
is_forwardref_format = False
|
|
121
|
+
case Format.FORWARDREF:
|
|
122
|
+
is_forwardref_format = True
|
|
123
|
+
case _:
|
|
124
|
+
raise NotImplementedError(format)
|
|
125
|
+
if isinstance(self.__cell__, types.CellType):
|
|
126
|
+
try:
|
|
127
|
+
return self.__cell__.cell_contents
|
|
128
|
+
except ValueError:
|
|
129
|
+
pass
|
|
130
|
+
if owner is None:
|
|
131
|
+
owner = self.__owner__
|
|
132
|
+
|
|
133
|
+
if globals is None and self.__forward_module__ is not None:
|
|
134
|
+
globals = getattr(
|
|
135
|
+
sys.modules.get(self.__forward_module__, None), "__dict__", None
|
|
136
|
+
)
|
|
137
|
+
if globals is None:
|
|
138
|
+
globals = self.__globals__
|
|
139
|
+
if globals is None:
|
|
140
|
+
if isinstance(owner, type):
|
|
141
|
+
module_name = getattr(owner, "__module__", None)
|
|
142
|
+
if module_name:
|
|
143
|
+
module = sys.modules.get(module_name, None)
|
|
144
|
+
if module:
|
|
145
|
+
globals = getattr(module, "__dict__", None)
|
|
146
|
+
elif isinstance(owner, types.ModuleType):
|
|
147
|
+
globals = getattr(owner, "__dict__", None)
|
|
148
|
+
elif callable(owner):
|
|
149
|
+
globals = getattr(owner, "__globals__", None)
|
|
150
|
+
|
|
151
|
+
# If we pass None to eval() below, the globals of this module are used.
|
|
152
|
+
if globals is None:
|
|
153
|
+
globals = {}
|
|
154
|
+
|
|
155
|
+
if type_params is None and owner is not None:
|
|
156
|
+
type_params = getattr(owner, "__type_params__", None)
|
|
157
|
+
|
|
158
|
+
if locals is None:
|
|
159
|
+
locals = {}
|
|
160
|
+
if isinstance(owner, type):
|
|
161
|
+
locals.update(vars(owner))
|
|
162
|
+
elif (
|
|
163
|
+
type_params is not None
|
|
164
|
+
or isinstance(self.__cell__, dict)
|
|
165
|
+
or self.__extra_names__
|
|
166
|
+
):
|
|
167
|
+
# Create a new locals dict if necessary,
|
|
168
|
+
# to avoid mutating the argument.
|
|
169
|
+
locals = dict(locals)
|
|
170
|
+
|
|
171
|
+
# "Inject" type parameters into the local namespace
|
|
172
|
+
# (unless they are shadowed by assignments *in* the local namespace),
|
|
173
|
+
# as a way of emulating annotation scopes when calling `eval()`
|
|
174
|
+
if type_params is not None:
|
|
175
|
+
for param in type_params:
|
|
176
|
+
locals.setdefault(param.__name__, param)
|
|
177
|
+
|
|
178
|
+
# Similar logic can be used for nonlocals, which should not
|
|
179
|
+
# override locals.
|
|
180
|
+
if isinstance(self.__cell__, dict):
|
|
181
|
+
for cell_name, cell in self.__cell__.items():
|
|
182
|
+
try:
|
|
183
|
+
cell_value = cell.cell_contents
|
|
184
|
+
except ValueError:
|
|
185
|
+
pass
|
|
186
|
+
else:
|
|
187
|
+
locals.setdefault(cell_name, cell_value)
|
|
188
|
+
|
|
189
|
+
if self.__extra_names__:
|
|
190
|
+
locals.update(self.__extra_names__)
|
|
191
|
+
|
|
192
|
+
arg = self.__forward_arg__
|
|
193
|
+
if arg.isidentifier() and not keyword.iskeyword(arg):
|
|
194
|
+
if arg in locals:
|
|
195
|
+
return locals[arg]
|
|
196
|
+
elif arg in globals:
|
|
197
|
+
return globals[arg]
|
|
198
|
+
elif hasattr(builtins, arg):
|
|
199
|
+
return getattr(builtins, arg)
|
|
200
|
+
elif is_forwardref_format:
|
|
201
|
+
return self
|
|
202
|
+
else:
|
|
203
|
+
raise NameError(_NAME_ERROR_MSG.format(name=arg), name=arg)
|
|
204
|
+
else:
|
|
205
|
+
code = self.__forward_code__
|
|
206
|
+
try:
|
|
207
|
+
return eval(code, globals=globals, locals=locals)
|
|
208
|
+
except Exception:
|
|
209
|
+
if not is_forwardref_format:
|
|
210
|
+
raise
|
|
211
|
+
|
|
212
|
+
# All variables, in scoping order, should be checked before
|
|
213
|
+
# triggering __missing__ to create a _Stringifier.
|
|
214
|
+
new_locals = _StringifierDict(
|
|
215
|
+
{**builtins.__dict__, **globals, **locals},
|
|
216
|
+
globals=globals,
|
|
217
|
+
owner=owner,
|
|
218
|
+
is_class=self.__forward_is_class__,
|
|
219
|
+
format=format,
|
|
220
|
+
)
|
|
221
|
+
try:
|
|
222
|
+
result = eval(code, globals=globals, locals=new_locals)
|
|
223
|
+
except Exception:
|
|
224
|
+
return self
|
|
225
|
+
else:
|
|
226
|
+
new_locals.transmogrify(self.__cell__)
|
|
227
|
+
return result
|
|
228
|
+
|
|
229
|
+
def _evaluate(self, globalns, localns, type_params=_sentinel, *, recursive_guard):
|
|
230
|
+
import typing
|
|
231
|
+
import warnings
|
|
232
|
+
|
|
233
|
+
if type_params is _sentinel:
|
|
234
|
+
typing._deprecation_warning_for_no_type_params_passed(
|
|
235
|
+
"typing.ForwardRef._evaluate"
|
|
236
|
+
)
|
|
237
|
+
type_params = ()
|
|
238
|
+
warnings._deprecated(
|
|
239
|
+
"ForwardRef._evaluate",
|
|
240
|
+
"{name} is a private API and is retained for compatibility, but will be removed"
|
|
241
|
+
" in Python 3.16. Use ForwardRef.evaluate() or typing.evaluate_forward_ref() instead.",
|
|
242
|
+
remove=(3, 16),
|
|
243
|
+
)
|
|
244
|
+
return typing.evaluate_forward_ref(
|
|
245
|
+
self,
|
|
246
|
+
globals=globalns,
|
|
247
|
+
locals=localns,
|
|
248
|
+
type_params=type_params,
|
|
249
|
+
_recursive_guard=recursive_guard,
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
@property
|
|
253
|
+
def __forward_arg__(self):
|
|
254
|
+
if self.__arg__ is not None:
|
|
255
|
+
return self.__arg__
|
|
256
|
+
if self.__ast_node__ is not None:
|
|
257
|
+
self.__arg__ = ast.unparse(self.__ast_node__)
|
|
258
|
+
return self.__arg__
|
|
259
|
+
raise AssertionError(
|
|
260
|
+
"Attempted to access '__forward_arg__' on an uninitialized ForwardRef"
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
@property
|
|
264
|
+
def __resolved_str__(self):
|
|
265
|
+
# __forward_arg__ with any names from __extra_names__ replaced
|
|
266
|
+
# with the type_repr of the value they represent
|
|
267
|
+
if self.__resolved_str_cache__ is None:
|
|
268
|
+
resolved_str = self.__forward_arg__
|
|
269
|
+
names = self.__extra_names__
|
|
270
|
+
|
|
271
|
+
if names:
|
|
272
|
+
visitor = _ExtraNameFixer(names)
|
|
273
|
+
ast_expr = ast.parse(resolved_str, mode="eval").body
|
|
274
|
+
node = visitor.visit(ast_expr)
|
|
275
|
+
resolved_str = ast.unparse(node)
|
|
276
|
+
|
|
277
|
+
self.__resolved_str_cache__ = resolved_str
|
|
278
|
+
|
|
279
|
+
return self.__resolved_str_cache__
|
|
280
|
+
|
|
281
|
+
@property
|
|
282
|
+
def __forward_code__(self):
|
|
283
|
+
if self.__code__ is not None:
|
|
284
|
+
return self.__code__
|
|
285
|
+
arg = self.__forward_arg__
|
|
286
|
+
try:
|
|
287
|
+
self.__code__ = compile(_rewrite_star_unpack(arg), "<string>", "eval")
|
|
288
|
+
except SyntaxError:
|
|
289
|
+
raise SyntaxError(f"Forward reference must be an expression -- got {arg!r}")
|
|
290
|
+
return self.__code__
|
|
291
|
+
|
|
292
|
+
def __eq__(self, other):
|
|
293
|
+
if not isinstance(other, ForwardRef):
|
|
294
|
+
return NotImplemented
|
|
295
|
+
return (
|
|
296
|
+
self.__forward_arg__ == other.__forward_arg__
|
|
297
|
+
and self.__forward_module__ == other.__forward_module__
|
|
298
|
+
# Use "is" here because we use id() for this in __hash__
|
|
299
|
+
# because dictionaries are not hashable.
|
|
300
|
+
and self.__globals__ is other.__globals__
|
|
301
|
+
and self.__forward_is_class__ == other.__forward_is_class__
|
|
302
|
+
# Two separate cells are always considered unequal in forward refs.
|
|
303
|
+
and (
|
|
304
|
+
{name: id(cell) for name, cell in self.__cell__.items()}
|
|
305
|
+
== {name: id(cell) for name, cell in other.__cell__.items()}
|
|
306
|
+
if isinstance(self.__cell__, dict) and isinstance(other.__cell__, dict)
|
|
307
|
+
else self.__cell__ is other.__cell__
|
|
308
|
+
)
|
|
309
|
+
and self.__owner__ == other.__owner__
|
|
310
|
+
and (
|
|
311
|
+
(tuple(sorted(self.__extra_names__.items())) if self.__extra_names__ else None) ==
|
|
312
|
+
(tuple(sorted(other.__extra_names__.items())) if other.__extra_names__ else None)
|
|
313
|
+
)
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
def __hash__(self):
|
|
317
|
+
return hash((
|
|
318
|
+
self.__forward_arg__,
|
|
319
|
+
self.__forward_module__,
|
|
320
|
+
id(self.__globals__), # dictionaries are not hashable, so hash by identity
|
|
321
|
+
self.__forward_is_class__,
|
|
322
|
+
( # cells are not hashable as well
|
|
323
|
+
tuple(sorted([(name, id(cell)) for name, cell in self.__cell__.items()]))
|
|
324
|
+
if isinstance(self.__cell__, dict) else id(self.__cell__),
|
|
325
|
+
),
|
|
326
|
+
self.__owner__,
|
|
327
|
+
tuple(sorted(self.__extra_names__.items())) if self.__extra_names__ else None,
|
|
328
|
+
))
|
|
329
|
+
|
|
330
|
+
def __or__(self, other):
|
|
331
|
+
return types.UnionType[self, other]
|
|
332
|
+
|
|
333
|
+
def __ror__(self, other):
|
|
334
|
+
return types.UnionType[other, self]
|
|
335
|
+
|
|
336
|
+
def __repr__(self):
|
|
337
|
+
extra = []
|
|
338
|
+
if self.__forward_module__ is not None:
|
|
339
|
+
extra.append(f", module={self.__forward_module__!r}")
|
|
340
|
+
if self.__forward_is_class__:
|
|
341
|
+
extra.append(", is_class=True")
|
|
342
|
+
if self.__owner__ is not None:
|
|
343
|
+
extra.append(f", owner={self.__owner__!r}")
|
|
344
|
+
return f"ForwardRef({self.__resolved_str__!r}{''.join(extra)})"
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
_Template = type(t"")
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
class _Stringifier:
|
|
351
|
+
# Must match the slots on ForwardRef, so we can turn an instance of one into an
|
|
352
|
+
# instance of the other in place.
|
|
353
|
+
__slots__ = _SLOTS
|
|
354
|
+
|
|
355
|
+
def __init__(
|
|
356
|
+
self,
|
|
357
|
+
node,
|
|
358
|
+
globals=None,
|
|
359
|
+
owner=None,
|
|
360
|
+
is_class=False,
|
|
361
|
+
cell=None,
|
|
362
|
+
*,
|
|
363
|
+
stringifier_dict,
|
|
364
|
+
extra_names=None,
|
|
365
|
+
):
|
|
366
|
+
# Either an AST node or a simple str (for the common case where a ForwardRef
|
|
367
|
+
# represent a single name).
|
|
368
|
+
assert isinstance(node, (ast.AST, str))
|
|
369
|
+
self.__arg__ = None
|
|
370
|
+
self.__forward_is_argument__ = False
|
|
371
|
+
self.__forward_is_class__ = is_class
|
|
372
|
+
self.__forward_module__ = None
|
|
373
|
+
self.__code__ = None
|
|
374
|
+
self.__ast_node__ = node
|
|
375
|
+
self.__globals__ = globals
|
|
376
|
+
self.__extra_names__ = extra_names
|
|
377
|
+
self.__cell__ = cell
|
|
378
|
+
self.__owner__ = owner
|
|
379
|
+
self.__stringifier_dict__ = stringifier_dict
|
|
380
|
+
self.__resolved_str_cache__ = None # Needed for ForwardRef
|
|
381
|
+
|
|
382
|
+
def __convert_to_ast(self, other):
|
|
383
|
+
if isinstance(other, _Stringifier):
|
|
384
|
+
if isinstance(other.__ast_node__, str):
|
|
385
|
+
return ast.Name(id=other.__ast_node__), other.__extra_names__
|
|
386
|
+
return other.__ast_node__, other.__extra_names__
|
|
387
|
+
elif type(other) is _Template:
|
|
388
|
+
return _template_to_ast(other), None
|
|
389
|
+
elif (
|
|
390
|
+
# In STRING format we don't bother with the create_unique_name() dance;
|
|
391
|
+
# it's better to emit the repr() of the object instead of an opaque name.
|
|
392
|
+
self.__stringifier_dict__.format == Format.STRING
|
|
393
|
+
or other is None
|
|
394
|
+
or type(other) in (str, int, float, bool, complex)
|
|
395
|
+
):
|
|
396
|
+
return ast.Constant(value=other), None
|
|
397
|
+
elif type(other) is dict:
|
|
398
|
+
extra_names = {}
|
|
399
|
+
keys = []
|
|
400
|
+
values = []
|
|
401
|
+
for key, value in other.items():
|
|
402
|
+
new_key, new_extra_names = self.__convert_to_ast(key)
|
|
403
|
+
if new_extra_names is not None:
|
|
404
|
+
extra_names.update(new_extra_names)
|
|
405
|
+
keys.append(new_key)
|
|
406
|
+
new_value, new_extra_names = self.__convert_to_ast(value)
|
|
407
|
+
if new_extra_names is not None:
|
|
408
|
+
extra_names.update(new_extra_names)
|
|
409
|
+
values.append(new_value)
|
|
410
|
+
return ast.Dict(keys, values), extra_names
|
|
411
|
+
elif type(other) in (list, tuple, set):
|
|
412
|
+
extra_names = {}
|
|
413
|
+
elts = []
|
|
414
|
+
for elt in other:
|
|
415
|
+
new_elt, new_extra_names = self.__convert_to_ast(elt)
|
|
416
|
+
if new_extra_names is not None:
|
|
417
|
+
extra_names.update(new_extra_names)
|
|
418
|
+
elts.append(new_elt)
|
|
419
|
+
ast_class = {list: ast.List, tuple: ast.Tuple, set: ast.Set}[type(other)]
|
|
420
|
+
return ast_class(elts), extra_names
|
|
421
|
+
else:
|
|
422
|
+
name = self.__stringifier_dict__.create_unique_name()
|
|
423
|
+
return ast.Name(id=name), {name: other}
|
|
424
|
+
|
|
425
|
+
def __convert_to_ast_getitem(self, other):
|
|
426
|
+
if isinstance(other, slice):
|
|
427
|
+
extra_names = {}
|
|
428
|
+
|
|
429
|
+
def conv(obj):
|
|
430
|
+
if obj is None:
|
|
431
|
+
return None
|
|
432
|
+
new_obj, new_extra_names = self.__convert_to_ast(obj)
|
|
433
|
+
if new_extra_names is not None:
|
|
434
|
+
extra_names.update(new_extra_names)
|
|
435
|
+
return new_obj
|
|
436
|
+
|
|
437
|
+
return ast.Slice(
|
|
438
|
+
lower=conv(other.start),
|
|
439
|
+
upper=conv(other.stop),
|
|
440
|
+
step=conv(other.step),
|
|
441
|
+
), extra_names
|
|
442
|
+
else:
|
|
443
|
+
return self.__convert_to_ast(other)
|
|
444
|
+
|
|
445
|
+
def __get_ast(self):
|
|
446
|
+
node = self.__ast_node__
|
|
447
|
+
if isinstance(node, str):
|
|
448
|
+
return ast.Name(id=node)
|
|
449
|
+
return node
|
|
450
|
+
|
|
451
|
+
def __make_new(self, node, extra_names=None):
|
|
452
|
+
new_extra_names = {}
|
|
453
|
+
if self.__extra_names__ is not None:
|
|
454
|
+
new_extra_names.update(self.__extra_names__)
|
|
455
|
+
if extra_names is not None:
|
|
456
|
+
new_extra_names.update(extra_names)
|
|
457
|
+
stringifier = _Stringifier(
|
|
458
|
+
node,
|
|
459
|
+
self.__globals__,
|
|
460
|
+
self.__owner__,
|
|
461
|
+
self.__forward_is_class__,
|
|
462
|
+
stringifier_dict=self.__stringifier_dict__,
|
|
463
|
+
extra_names=new_extra_names or None,
|
|
464
|
+
)
|
|
465
|
+
self.__stringifier_dict__.stringifiers.append(stringifier)
|
|
466
|
+
return stringifier
|
|
467
|
+
|
|
468
|
+
# Must implement this since we set __eq__. We hash by identity so that
|
|
469
|
+
# stringifiers in dict keys are kept separate.
|
|
470
|
+
def __hash__(self):
|
|
471
|
+
return id(self)
|
|
472
|
+
|
|
473
|
+
def __getitem__(self, other):
|
|
474
|
+
# Special case, to avoid stringifying references to class-scoped variables
|
|
475
|
+
# as '__classdict__["x"]'.
|
|
476
|
+
if self.__ast_node__ == "__classdict__":
|
|
477
|
+
raise KeyError
|
|
478
|
+
if isinstance(other, tuple):
|
|
479
|
+
extra_names = {}
|
|
480
|
+
elts = []
|
|
481
|
+
for elt in other:
|
|
482
|
+
new_elt, new_extra_names = self.__convert_to_ast_getitem(elt)
|
|
483
|
+
if new_extra_names is not None:
|
|
484
|
+
extra_names.update(new_extra_names)
|
|
485
|
+
elts.append(new_elt)
|
|
486
|
+
other = ast.Tuple(elts)
|
|
487
|
+
else:
|
|
488
|
+
other, extra_names = self.__convert_to_ast_getitem(other)
|
|
489
|
+
assert isinstance(other, ast.AST), repr(other)
|
|
490
|
+
return self.__make_new(ast.Subscript(self.__get_ast(), other), extra_names)
|
|
491
|
+
|
|
492
|
+
def __getattr__(self, attr):
|
|
493
|
+
return self.__make_new(ast.Attribute(self.__get_ast(), attr))
|
|
494
|
+
|
|
495
|
+
def __call__(self, *args, **kwargs):
|
|
496
|
+
extra_names = {}
|
|
497
|
+
ast_args = []
|
|
498
|
+
for arg in args:
|
|
499
|
+
new_arg, new_extra_names = self.__convert_to_ast(arg)
|
|
500
|
+
if new_extra_names is not None:
|
|
501
|
+
extra_names.update(new_extra_names)
|
|
502
|
+
ast_args.append(new_arg)
|
|
503
|
+
ast_kwargs = []
|
|
504
|
+
for key, value in kwargs.items():
|
|
505
|
+
new_value, new_extra_names = self.__convert_to_ast(value)
|
|
506
|
+
if new_extra_names is not None:
|
|
507
|
+
extra_names.update(new_extra_names)
|
|
508
|
+
ast_kwargs.append(ast.keyword(key, new_value))
|
|
509
|
+
return self.__make_new(ast.Call(self.__get_ast(), ast_args, ast_kwargs), extra_names)
|
|
510
|
+
|
|
511
|
+
def __iter__(self):
|
|
512
|
+
yield self.__make_new(ast.Starred(self.__get_ast()))
|
|
513
|
+
|
|
514
|
+
def __repr__(self):
|
|
515
|
+
if isinstance(self.__ast_node__, str):
|
|
516
|
+
return self.__ast_node__
|
|
517
|
+
return ast.unparse(self.__ast_node__)
|
|
518
|
+
|
|
519
|
+
def __format__(self, format_spec):
|
|
520
|
+
raise TypeError("Cannot stringify annotation containing string formatting")
|
|
521
|
+
|
|
522
|
+
def _make_binop(op: ast.AST):
|
|
523
|
+
def binop(self, other):
|
|
524
|
+
rhs, extra_names = self.__convert_to_ast(other)
|
|
525
|
+
return self.__make_new(
|
|
526
|
+
ast.BinOp(self.__get_ast(), op, rhs), extra_names
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
return binop
|
|
530
|
+
|
|
531
|
+
__add__ = _make_binop(ast.Add())
|
|
532
|
+
__sub__ = _make_binop(ast.Sub())
|
|
533
|
+
__mul__ = _make_binop(ast.Mult())
|
|
534
|
+
__matmul__ = _make_binop(ast.MatMult())
|
|
535
|
+
__truediv__ = _make_binop(ast.Div())
|
|
536
|
+
__mod__ = _make_binop(ast.Mod())
|
|
537
|
+
__lshift__ = _make_binop(ast.LShift())
|
|
538
|
+
__rshift__ = _make_binop(ast.RShift())
|
|
539
|
+
__or__ = _make_binop(ast.BitOr())
|
|
540
|
+
__xor__ = _make_binop(ast.BitXor())
|
|
541
|
+
__and__ = _make_binop(ast.BitAnd())
|
|
542
|
+
__floordiv__ = _make_binop(ast.FloorDiv())
|
|
543
|
+
__pow__ = _make_binop(ast.Pow())
|
|
544
|
+
|
|
545
|
+
del _make_binop
|
|
546
|
+
|
|
547
|
+
def _make_rbinop(op: ast.AST):
|
|
548
|
+
def rbinop(self, other):
|
|
549
|
+
new_other, extra_names = self.__convert_to_ast(other)
|
|
550
|
+
return self.__make_new(
|
|
551
|
+
ast.BinOp(new_other, op, self.__get_ast()), extra_names
|
|
552
|
+
)
|
|
553
|
+
|
|
554
|
+
return rbinop
|
|
555
|
+
|
|
556
|
+
__radd__ = _make_rbinop(ast.Add())
|
|
557
|
+
__rsub__ = _make_rbinop(ast.Sub())
|
|
558
|
+
__rmul__ = _make_rbinop(ast.Mult())
|
|
559
|
+
__rmatmul__ = _make_rbinop(ast.MatMult())
|
|
560
|
+
__rtruediv__ = _make_rbinop(ast.Div())
|
|
561
|
+
__rmod__ = _make_rbinop(ast.Mod())
|
|
562
|
+
__rlshift__ = _make_rbinop(ast.LShift())
|
|
563
|
+
__rrshift__ = _make_rbinop(ast.RShift())
|
|
564
|
+
__ror__ = _make_rbinop(ast.BitOr())
|
|
565
|
+
__rxor__ = _make_rbinop(ast.BitXor())
|
|
566
|
+
__rand__ = _make_rbinop(ast.BitAnd())
|
|
567
|
+
__rfloordiv__ = _make_rbinop(ast.FloorDiv())
|
|
568
|
+
__rpow__ = _make_rbinop(ast.Pow())
|
|
569
|
+
|
|
570
|
+
del _make_rbinop
|
|
571
|
+
|
|
572
|
+
def _make_compare(op):
|
|
573
|
+
def compare(self, other):
|
|
574
|
+
rhs, extra_names = self.__convert_to_ast(other)
|
|
575
|
+
return self.__make_new(
|
|
576
|
+
ast.Compare(
|
|
577
|
+
left=self.__get_ast(),
|
|
578
|
+
ops=[op],
|
|
579
|
+
comparators=[rhs],
|
|
580
|
+
),
|
|
581
|
+
extra_names,
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
return compare
|
|
585
|
+
|
|
586
|
+
__lt__ = _make_compare(ast.Lt())
|
|
587
|
+
__le__ = _make_compare(ast.LtE())
|
|
588
|
+
__eq__ = _make_compare(ast.Eq())
|
|
589
|
+
__ne__ = _make_compare(ast.NotEq())
|
|
590
|
+
__gt__ = _make_compare(ast.Gt())
|
|
591
|
+
__ge__ = _make_compare(ast.GtE())
|
|
592
|
+
|
|
593
|
+
del _make_compare
|
|
594
|
+
|
|
595
|
+
def _make_unary_op(op):
|
|
596
|
+
def unary_op(self):
|
|
597
|
+
return self.__make_new(ast.UnaryOp(op, self.__get_ast()))
|
|
598
|
+
|
|
599
|
+
return unary_op
|
|
600
|
+
|
|
601
|
+
__invert__ = _make_unary_op(ast.Invert())
|
|
602
|
+
__pos__ = _make_unary_op(ast.UAdd())
|
|
603
|
+
__neg__ = _make_unary_op(ast.USub())
|
|
604
|
+
|
|
605
|
+
del _make_unary_op
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
def _template_to_ast_constructor(template):
|
|
609
|
+
"""Convert a `template` instance to a non-literal AST."""
|
|
610
|
+
args = []
|
|
611
|
+
for part in template:
|
|
612
|
+
match part:
|
|
613
|
+
case str():
|
|
614
|
+
args.append(ast.Constant(value=part))
|
|
615
|
+
case _:
|
|
616
|
+
interp = ast.Call(
|
|
617
|
+
func=ast.Name(id="Interpolation"),
|
|
618
|
+
args=[
|
|
619
|
+
ast.Constant(value=part.value),
|
|
620
|
+
ast.Constant(value=part.expression),
|
|
621
|
+
ast.Constant(value=part.conversion),
|
|
622
|
+
ast.Constant(value=part.format_spec),
|
|
623
|
+
]
|
|
624
|
+
)
|
|
625
|
+
args.append(interp)
|
|
626
|
+
return ast.Call(func=ast.Name(id="Template"), args=args, keywords=[])
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
def _template_to_ast_literal(template, parsed):
|
|
630
|
+
"""Convert a `template` instance to a t-string literal AST."""
|
|
631
|
+
values = []
|
|
632
|
+
interp_count = 0
|
|
633
|
+
for part in template:
|
|
634
|
+
match part:
|
|
635
|
+
case str():
|
|
636
|
+
values.append(ast.Constant(value=part))
|
|
637
|
+
case _:
|
|
638
|
+
interp = ast.Interpolation(
|
|
639
|
+
str=part.expression,
|
|
640
|
+
value=parsed[interp_count],
|
|
641
|
+
conversion=ord(part.conversion) if part.conversion else -1,
|
|
642
|
+
format_spec=ast.Constant(value=part.format_spec)
|
|
643
|
+
if part.format_spec
|
|
644
|
+
else None,
|
|
645
|
+
)
|
|
646
|
+
values.append(interp)
|
|
647
|
+
interp_count += 1
|
|
648
|
+
return ast.TemplateStr(values=values)
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
def _template_to_ast(template):
|
|
652
|
+
"""Make a best-effort conversion of a `template` instance to an AST."""
|
|
653
|
+
# gh-138558: Not all Template instances can be represented as t-string
|
|
654
|
+
# literals. Return the most accurate AST we can. See issue for details.
|
|
655
|
+
|
|
656
|
+
# If any expr is empty or whitespace only, we cannot convert to a literal.
|
|
657
|
+
if any(part.expression.strip() == "" for part in template.interpolations):
|
|
658
|
+
return _template_to_ast_constructor(template)
|
|
659
|
+
|
|
660
|
+
try:
|
|
661
|
+
# Wrap in parens to allow whitespace inside interpolation curly braces
|
|
662
|
+
parsed = tuple(
|
|
663
|
+
ast.parse(f"({part.expression})", mode="eval").body
|
|
664
|
+
for part in template.interpolations
|
|
665
|
+
)
|
|
666
|
+
except SyntaxError:
|
|
667
|
+
return _template_to_ast_constructor(template)
|
|
668
|
+
|
|
669
|
+
return _template_to_ast_literal(template, parsed)
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
class _StringifierDict(dict):
|
|
673
|
+
def __init__(self, namespace, *, globals=None, owner=None, is_class=False, format):
|
|
674
|
+
super().__init__(namespace)
|
|
675
|
+
self.namespace = namespace
|
|
676
|
+
self.globals = globals
|
|
677
|
+
self.owner = owner
|
|
678
|
+
self.is_class = is_class
|
|
679
|
+
self.stringifiers = []
|
|
680
|
+
self.next_id = 1
|
|
681
|
+
self.format = format
|
|
682
|
+
|
|
683
|
+
def __missing__(self, key):
|
|
684
|
+
fwdref = _Stringifier(
|
|
685
|
+
key,
|
|
686
|
+
globals=self.globals,
|
|
687
|
+
owner=self.owner,
|
|
688
|
+
is_class=self.is_class,
|
|
689
|
+
stringifier_dict=self,
|
|
690
|
+
)
|
|
691
|
+
self.stringifiers.append(fwdref)
|
|
692
|
+
return fwdref
|
|
693
|
+
|
|
694
|
+
def transmogrify(self, cell_dict):
|
|
695
|
+
for obj in self.stringifiers:
|
|
696
|
+
obj.__class__ = ForwardRef
|
|
697
|
+
obj.__stringifier_dict__ = None # not needed for ForwardRef
|
|
698
|
+
if isinstance(obj.__ast_node__, str):
|
|
699
|
+
obj.__arg__ = obj.__ast_node__
|
|
700
|
+
obj.__ast_node__ = None
|
|
701
|
+
if cell_dict is not None and obj.__cell__ is None:
|
|
702
|
+
obj.__cell__ = cell_dict
|
|
703
|
+
|
|
704
|
+
def create_unique_name(self):
|
|
705
|
+
name = f"__annotationlib_name_{self.next_id}__"
|
|
706
|
+
self.next_id += 1
|
|
707
|
+
return name
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
def call_evaluate_function(evaluate, format, *, owner=None):
|
|
711
|
+
"""Call an evaluate function. Evaluate functions are normally generated for
|
|
712
|
+
the value of type aliases and the bounds, constraints, and defaults of
|
|
713
|
+
type parameter objects.
|
|
714
|
+
"""
|
|
715
|
+
return call_annotate_function(evaluate, format, owner=owner, _is_evaluate=True)
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
def call_annotate_function(annotate, format, *, owner=None, _is_evaluate=False):
|
|
719
|
+
"""Call an __annotate__ function. __annotate__ functions are normally
|
|
720
|
+
generated by the compiler to defer the evaluation of annotations. They
|
|
721
|
+
can be called with any of the format arguments in the Format enum, but
|
|
722
|
+
compiler-generated __annotate__ functions only support the VALUE format.
|
|
723
|
+
This function provides additional functionality to call __annotate__
|
|
724
|
+
functions with the FORWARDREF and STRING formats.
|
|
725
|
+
|
|
726
|
+
*annotate* must be an __annotate__ function, which takes a single argument
|
|
727
|
+
and returns a dict of annotations.
|
|
728
|
+
|
|
729
|
+
*format* must be a member of the Format enum or one of the corresponding
|
|
730
|
+
integer values.
|
|
731
|
+
|
|
732
|
+
*owner* can be the object that owns the annotations (i.e., the module,
|
|
733
|
+
class, or function that the __annotate__ function derives from). With the
|
|
734
|
+
FORWARDREF format, it is used to provide better evaluation capabilities
|
|
735
|
+
on the generated ForwardRef objects.
|
|
736
|
+
|
|
737
|
+
"""
|
|
738
|
+
if format == Format.VALUE_WITH_FAKE_GLOBALS:
|
|
739
|
+
raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
|
|
740
|
+
try:
|
|
741
|
+
return annotate(format)
|
|
742
|
+
except NotImplementedError:
|
|
743
|
+
pass
|
|
744
|
+
if format == Format.STRING:
|
|
745
|
+
# STRING is implemented by calling the annotate function in a special
|
|
746
|
+
# environment where every name lookup results in an instance of _Stringifier.
|
|
747
|
+
# _Stringifier supports every dunder operation and returns a new _Stringifier.
|
|
748
|
+
# At the end, we get a dictionary that mostly contains _Stringifier objects (or
|
|
749
|
+
# possibly constants if the annotate function uses them directly). We then
|
|
750
|
+
# convert each of those into a string to get an approximation of the
|
|
751
|
+
# original source.
|
|
752
|
+
|
|
753
|
+
# Attempt to call with VALUE_WITH_FAKE_GLOBALS to check if it is implemented
|
|
754
|
+
# See: https://github.com/python/cpython/issues/138764
|
|
755
|
+
# Only fail on NotImplementedError
|
|
756
|
+
try:
|
|
757
|
+
annotate(Format.VALUE_WITH_FAKE_GLOBALS)
|
|
758
|
+
except NotImplementedError:
|
|
759
|
+
# Both STRING and VALUE_WITH_FAKE_GLOBALS are not implemented: fallback to VALUE
|
|
760
|
+
return annotations_to_string(annotate(Format.VALUE))
|
|
761
|
+
except Exception:
|
|
762
|
+
pass
|
|
763
|
+
|
|
764
|
+
globals = _StringifierDict({}, format=format)
|
|
765
|
+
is_class = isinstance(owner, type)
|
|
766
|
+
closure, _ = _build_closure(
|
|
767
|
+
annotate, owner, is_class, globals, allow_evaluation=False
|
|
768
|
+
)
|
|
769
|
+
func = types.FunctionType(
|
|
770
|
+
annotate.__code__,
|
|
771
|
+
globals,
|
|
772
|
+
closure=closure,
|
|
773
|
+
argdefs=annotate.__defaults__,
|
|
774
|
+
kwdefaults=annotate.__kwdefaults__,
|
|
775
|
+
)
|
|
776
|
+
annos = func(Format.VALUE_WITH_FAKE_GLOBALS)
|
|
777
|
+
if _is_evaluate:
|
|
778
|
+
return _stringify_single(annos)
|
|
779
|
+
return {
|
|
780
|
+
key: _stringify_single(val)
|
|
781
|
+
for key, val in annos.items()
|
|
782
|
+
}
|
|
783
|
+
elif format == Format.FORWARDREF:
|
|
784
|
+
# FORWARDREF is implemented similarly to STRING, but there are two changes,
|
|
785
|
+
# at the beginning and the end of the process.
|
|
786
|
+
# First, while STRING uses an empty dictionary as the namespace, so that all
|
|
787
|
+
# name lookups result in _Stringifier objects, FORWARDREF uses the globals
|
|
788
|
+
# and builtins, so that defined names map to their real values.
|
|
789
|
+
# Second, instead of returning strings, we want to return either real values
|
|
790
|
+
# or ForwardRef objects. To do this, we keep track of all _Stringifier objects
|
|
791
|
+
# created while the annotation is being evaluated, and at the end we convert
|
|
792
|
+
# them all to ForwardRef objects by assigning to __class__. To make this
|
|
793
|
+
# technique work, we have to ensure that the _Stringifier and ForwardRef
|
|
794
|
+
# classes share the same attributes.
|
|
795
|
+
# We use this technique because while the annotations are being evaluated,
|
|
796
|
+
# we want to support all operations that the language allows, including even
|
|
797
|
+
# __getattr__ and __eq__, and return new _Stringifier objects so we can accurately
|
|
798
|
+
# reconstruct the source. But in the dictionary that we eventually return, we
|
|
799
|
+
# want to return objects with more user-friendly behavior, such as an __eq__
|
|
800
|
+
# that returns a bool and an defined set of attributes.
|
|
801
|
+
namespace = {**annotate.__builtins__, **annotate.__globals__}
|
|
802
|
+
is_class = isinstance(owner, type)
|
|
803
|
+
globals = _StringifierDict(
|
|
804
|
+
namespace,
|
|
805
|
+
globals=annotate.__globals__,
|
|
806
|
+
owner=owner,
|
|
807
|
+
is_class=is_class,
|
|
808
|
+
format=format,
|
|
809
|
+
)
|
|
810
|
+
closure, cell_dict = _build_closure(
|
|
811
|
+
annotate, owner, is_class, globals, allow_evaluation=True
|
|
812
|
+
)
|
|
813
|
+
func = types.FunctionType(
|
|
814
|
+
annotate.__code__,
|
|
815
|
+
globals,
|
|
816
|
+
closure=closure,
|
|
817
|
+
argdefs=annotate.__defaults__,
|
|
818
|
+
kwdefaults=annotate.__kwdefaults__,
|
|
819
|
+
)
|
|
820
|
+
try:
|
|
821
|
+
result = func(Format.VALUE_WITH_FAKE_GLOBALS)
|
|
822
|
+
except NotImplementedError:
|
|
823
|
+
# FORWARDREF and VALUE_WITH_FAKE_GLOBALS not supported, fall back to VALUE
|
|
824
|
+
return annotate(Format.VALUE)
|
|
825
|
+
except Exception:
|
|
826
|
+
pass
|
|
827
|
+
else:
|
|
828
|
+
globals.transmogrify(cell_dict)
|
|
829
|
+
return result
|
|
830
|
+
|
|
831
|
+
# Try again, but do not provide any globals. This allows us to return
|
|
832
|
+
# a value in certain cases where an exception gets raised during evaluation.
|
|
833
|
+
globals = _StringifierDict(
|
|
834
|
+
{},
|
|
835
|
+
globals=annotate.__globals__,
|
|
836
|
+
owner=owner,
|
|
837
|
+
is_class=is_class,
|
|
838
|
+
format=format,
|
|
839
|
+
)
|
|
840
|
+
closure, cell_dict = _build_closure(
|
|
841
|
+
annotate, owner, is_class, globals, allow_evaluation=False
|
|
842
|
+
)
|
|
843
|
+
func = types.FunctionType(
|
|
844
|
+
annotate.__code__,
|
|
845
|
+
globals,
|
|
846
|
+
closure=closure,
|
|
847
|
+
argdefs=annotate.__defaults__,
|
|
848
|
+
kwdefaults=annotate.__kwdefaults__,
|
|
849
|
+
)
|
|
850
|
+
result = func(Format.VALUE_WITH_FAKE_GLOBALS)
|
|
851
|
+
globals.transmogrify(cell_dict)
|
|
852
|
+
if _is_evaluate:
|
|
853
|
+
if isinstance(result, ForwardRef):
|
|
854
|
+
return result.evaluate(format=Format.FORWARDREF)
|
|
855
|
+
else:
|
|
856
|
+
return result
|
|
857
|
+
else:
|
|
858
|
+
return {
|
|
859
|
+
key: (
|
|
860
|
+
val.evaluate(format=Format.FORWARDREF)
|
|
861
|
+
if isinstance(val, ForwardRef)
|
|
862
|
+
else val
|
|
863
|
+
)
|
|
864
|
+
for key, val in result.items()
|
|
865
|
+
}
|
|
866
|
+
elif format == Format.VALUE:
|
|
867
|
+
# Should be impossible because __annotate__ functions must not raise
|
|
868
|
+
# NotImplementedError for this format.
|
|
869
|
+
raise RuntimeError("annotate function does not support VALUE format")
|
|
870
|
+
else:
|
|
871
|
+
raise ValueError(f"Invalid format: {format!r}")
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
def _build_closure(annotate, owner, is_class, stringifier_dict, *, allow_evaluation):
|
|
875
|
+
if not annotate.__closure__:
|
|
876
|
+
return None, None
|
|
877
|
+
new_closure = []
|
|
878
|
+
cell_dict = {}
|
|
879
|
+
for name, cell in zip(annotate.__code__.co_freevars, annotate.__closure__, strict=True):
|
|
880
|
+
cell_dict[name] = cell
|
|
881
|
+
new_cell = None
|
|
882
|
+
if allow_evaluation:
|
|
883
|
+
try:
|
|
884
|
+
cell.cell_contents
|
|
885
|
+
except ValueError:
|
|
886
|
+
pass
|
|
887
|
+
else:
|
|
888
|
+
new_cell = cell
|
|
889
|
+
if new_cell is None:
|
|
890
|
+
fwdref = _Stringifier(
|
|
891
|
+
name,
|
|
892
|
+
cell=cell,
|
|
893
|
+
owner=owner,
|
|
894
|
+
globals=annotate.__globals__,
|
|
895
|
+
is_class=is_class,
|
|
896
|
+
stringifier_dict=stringifier_dict,
|
|
897
|
+
)
|
|
898
|
+
stringifier_dict.stringifiers.append(fwdref)
|
|
899
|
+
new_cell = types.CellType(fwdref)
|
|
900
|
+
new_closure.append(new_cell)
|
|
901
|
+
return tuple(new_closure), cell_dict
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
def _stringify_single(anno):
|
|
905
|
+
if anno is ...:
|
|
906
|
+
return "..."
|
|
907
|
+
# We have to handle str specially to support PEP 563 stringified annotations.
|
|
908
|
+
elif isinstance(anno, str):
|
|
909
|
+
return anno
|
|
910
|
+
elif isinstance(anno, _Template):
|
|
911
|
+
return ast.unparse(_template_to_ast(anno))
|
|
912
|
+
else:
|
|
913
|
+
return repr(anno)
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
def get_annotate_from_class_namespace(obj):
|
|
917
|
+
"""Retrieve the annotate function from a class namespace dictionary.
|
|
918
|
+
|
|
919
|
+
Return None if the namespace does not contain an annotate function.
|
|
920
|
+
This is useful in metaclass ``__new__`` methods to retrieve the annotate function.
|
|
921
|
+
"""
|
|
922
|
+
try:
|
|
923
|
+
return obj["__annotate__"]
|
|
924
|
+
except KeyError:
|
|
925
|
+
return obj.get("__annotate_func__", None)
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
def get_annotations(
|
|
929
|
+
obj, *, globals=None, locals=None, eval_str=False, format=Format.VALUE
|
|
930
|
+
):
|
|
931
|
+
"""Compute the annotations dict for an object.
|
|
932
|
+
|
|
933
|
+
obj may be a callable, class, module, or other object with
|
|
934
|
+
__annotate__ or __annotations__ attributes.
|
|
935
|
+
Passing any other object raises TypeError.
|
|
936
|
+
|
|
937
|
+
The *format* parameter controls the format in which annotations are returned,
|
|
938
|
+
and must be a member of the Format enum or its integer equivalent.
|
|
939
|
+
For the VALUE format, the __annotations__ is tried first; if it
|
|
940
|
+
does not exist, the __annotate__ function is called. The
|
|
941
|
+
FORWARDREF format uses __annotations__ if it exists and can be
|
|
942
|
+
evaluated, and otherwise falls back to calling the __annotate__ function.
|
|
943
|
+
The STRING format tries __annotate__ first, and falls back to
|
|
944
|
+
using __annotations__, stringified using annotations_to_string().
|
|
945
|
+
|
|
946
|
+
This function handles several details for you:
|
|
947
|
+
|
|
948
|
+
* If eval_str is true, values of type str will
|
|
949
|
+
be un-stringized using eval(). This is intended
|
|
950
|
+
for use with stringized annotations
|
|
951
|
+
("from __future__ import annotations").
|
|
952
|
+
* If obj doesn't have an annotations dict, returns an
|
|
953
|
+
empty dict. (Functions and methods always have an
|
|
954
|
+
annotations dict; classes, modules, and other types of
|
|
955
|
+
callables may not.)
|
|
956
|
+
* Ignores inherited annotations on classes. If a class
|
|
957
|
+
doesn't have its own annotations dict, returns an empty dict.
|
|
958
|
+
* All accesses to object members and dict values are done
|
|
959
|
+
using getattr() and dict.get() for safety.
|
|
960
|
+
* Always, always, always returns a freshly-created dict.
|
|
961
|
+
|
|
962
|
+
eval_str controls whether or not values of type str are replaced
|
|
963
|
+
with the result of calling eval() on those values:
|
|
964
|
+
|
|
965
|
+
* If eval_str is true, eval() is called on values of type str.
|
|
966
|
+
* If eval_str is false (the default), values of type str are unchanged.
|
|
967
|
+
|
|
968
|
+
globals and locals are passed in to eval(); see the documentation
|
|
969
|
+
for eval() for more information. If either globals or locals is
|
|
970
|
+
None, this function may replace that value with a context-specific
|
|
971
|
+
default, contingent on type(obj):
|
|
972
|
+
|
|
973
|
+
* If obj is a module, globals defaults to obj.__dict__.
|
|
974
|
+
* If obj is a class, globals defaults to
|
|
975
|
+
sys.modules[obj.__module__].__dict__ and locals
|
|
976
|
+
defaults to the obj class namespace.
|
|
977
|
+
* If obj is a callable, globals defaults to obj.__globals__,
|
|
978
|
+
although if obj is a wrapped function (using
|
|
979
|
+
functools.update_wrapper()) it is first unwrapped.
|
|
980
|
+
"""
|
|
981
|
+
if eval_str and format != Format.VALUE:
|
|
982
|
+
raise ValueError("eval_str=True is only supported with format=Format.VALUE")
|
|
983
|
+
|
|
984
|
+
match format:
|
|
985
|
+
case Format.VALUE:
|
|
986
|
+
# For VALUE, we first look at __annotations__
|
|
987
|
+
ann = _get_dunder_annotations(obj)
|
|
988
|
+
|
|
989
|
+
# If it's not there, try __annotate__ instead
|
|
990
|
+
if ann is None:
|
|
991
|
+
ann = _get_and_call_annotate(obj, format)
|
|
992
|
+
case Format.FORWARDREF:
|
|
993
|
+
# For FORWARDREF, we use __annotations__ if it exists
|
|
994
|
+
try:
|
|
995
|
+
ann = _get_dunder_annotations(obj)
|
|
996
|
+
except Exception:
|
|
997
|
+
pass
|
|
998
|
+
else:
|
|
999
|
+
if ann is not None:
|
|
1000
|
+
return dict(ann)
|
|
1001
|
+
|
|
1002
|
+
# But if __annotations__ threw a NameError, we try calling __annotate__
|
|
1003
|
+
ann = _get_and_call_annotate(obj, format)
|
|
1004
|
+
if ann is None:
|
|
1005
|
+
# If that didn't work either, we have a very weird object: evaluating
|
|
1006
|
+
# __annotations__ threw NameError and there is no __annotate__. In that case,
|
|
1007
|
+
# we fall back to trying __annotations__ again.
|
|
1008
|
+
ann = _get_dunder_annotations(obj)
|
|
1009
|
+
case Format.STRING:
|
|
1010
|
+
# For STRING, we try to call __annotate__
|
|
1011
|
+
ann = _get_and_call_annotate(obj, format)
|
|
1012
|
+
if ann is not None:
|
|
1013
|
+
return dict(ann)
|
|
1014
|
+
# But if we didn't get it, we use __annotations__ instead.
|
|
1015
|
+
ann = _get_dunder_annotations(obj)
|
|
1016
|
+
if ann is not None:
|
|
1017
|
+
return annotations_to_string(ann)
|
|
1018
|
+
case Format.VALUE_WITH_FAKE_GLOBALS:
|
|
1019
|
+
raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
|
|
1020
|
+
case _:
|
|
1021
|
+
raise ValueError(f"Unsupported format {format!r}")
|
|
1022
|
+
|
|
1023
|
+
if ann is None:
|
|
1024
|
+
if isinstance(obj, type) or callable(obj):
|
|
1025
|
+
return {}
|
|
1026
|
+
raise TypeError(f"{obj!r} does not have annotations")
|
|
1027
|
+
|
|
1028
|
+
if not ann:
|
|
1029
|
+
return {}
|
|
1030
|
+
|
|
1031
|
+
if not eval_str:
|
|
1032
|
+
return dict(ann)
|
|
1033
|
+
|
|
1034
|
+
if globals is None or locals is None:
|
|
1035
|
+
if isinstance(obj, type):
|
|
1036
|
+
# class
|
|
1037
|
+
obj_globals = None
|
|
1038
|
+
module_name = getattr(obj, "__module__", None)
|
|
1039
|
+
if module_name:
|
|
1040
|
+
module = sys.modules.get(module_name, None)
|
|
1041
|
+
if module:
|
|
1042
|
+
obj_globals = getattr(module, "__dict__", None)
|
|
1043
|
+
obj_locals = dict(vars(obj))
|
|
1044
|
+
unwrap = obj
|
|
1045
|
+
elif isinstance(obj, types.ModuleType):
|
|
1046
|
+
# module
|
|
1047
|
+
obj_globals = getattr(obj, "__dict__")
|
|
1048
|
+
obj_locals = None
|
|
1049
|
+
unwrap = None
|
|
1050
|
+
elif callable(obj):
|
|
1051
|
+
# this includes types.Function, types.BuiltinFunctionType,
|
|
1052
|
+
# types.BuiltinMethodType, functools.partial, functools.singledispatch,
|
|
1053
|
+
# "class funclike" from Lib/test/test_inspect... on and on it goes.
|
|
1054
|
+
obj_globals = getattr(obj, "__globals__", None)
|
|
1055
|
+
obj_locals = None
|
|
1056
|
+
unwrap = obj
|
|
1057
|
+
else:
|
|
1058
|
+
obj_globals = obj_locals = unwrap = None
|
|
1059
|
+
|
|
1060
|
+
if unwrap is not None:
|
|
1061
|
+
# Use an id-based visited set to detect cycles in the __wrapped__
|
|
1062
|
+
# and functools.partial.func chain (e.g. f.__wrapped__ = f).
|
|
1063
|
+
# On cycle detection we stop and use whatever __globals__ we have
|
|
1064
|
+
# found so far, mirroring the approach of inspect.unwrap().
|
|
1065
|
+
_seen_ids = {id(unwrap)}
|
|
1066
|
+
while True:
|
|
1067
|
+
if hasattr(unwrap, "__wrapped__"):
|
|
1068
|
+
candidate = unwrap.__wrapped__
|
|
1069
|
+
if id(candidate) in _seen_ids:
|
|
1070
|
+
break
|
|
1071
|
+
_seen_ids.add(id(candidate))
|
|
1072
|
+
unwrap = candidate
|
|
1073
|
+
continue
|
|
1074
|
+
if functools := sys.modules.get("functools"):
|
|
1075
|
+
if isinstance(unwrap, functools.partial):
|
|
1076
|
+
candidate = unwrap.func
|
|
1077
|
+
if id(candidate) in _seen_ids:
|
|
1078
|
+
break
|
|
1079
|
+
_seen_ids.add(id(candidate))
|
|
1080
|
+
unwrap = candidate
|
|
1081
|
+
continue
|
|
1082
|
+
break
|
|
1083
|
+
if hasattr(unwrap, "__globals__"):
|
|
1084
|
+
obj_globals = unwrap.__globals__
|
|
1085
|
+
|
|
1086
|
+
if globals is None:
|
|
1087
|
+
globals = obj_globals
|
|
1088
|
+
if locals is None:
|
|
1089
|
+
locals = obj_locals
|
|
1090
|
+
|
|
1091
|
+
# "Inject" type parameters into the local namespace
|
|
1092
|
+
# (unless they are shadowed by assignments *in* the local namespace),
|
|
1093
|
+
# as a way of emulating annotation scopes when calling `eval()`
|
|
1094
|
+
if type_params := getattr(obj, "__type_params__", ()):
|
|
1095
|
+
if locals is None:
|
|
1096
|
+
locals = {}
|
|
1097
|
+
locals = {param.__name__: param for param in type_params} | locals
|
|
1098
|
+
|
|
1099
|
+
return_value = {
|
|
1100
|
+
key: value if not isinstance(value, str)
|
|
1101
|
+
else eval(_rewrite_star_unpack(value), globals, locals)
|
|
1102
|
+
for key, value in ann.items()
|
|
1103
|
+
}
|
|
1104
|
+
return return_value
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
def type_repr(value):
|
|
1108
|
+
"""Convert a Python value to a format suitable for use with the STRING format.
|
|
1109
|
+
|
|
1110
|
+
This is intended as a helper for tools that support the STRING format but do
|
|
1111
|
+
not have access to the code that originally produced the annotations. It uses
|
|
1112
|
+
repr() for most objects.
|
|
1113
|
+
|
|
1114
|
+
"""
|
|
1115
|
+
if isinstance(value, (type, types.FunctionType, types.BuiltinFunctionType)):
|
|
1116
|
+
module = value.__module__
|
|
1117
|
+
if module is None:
|
|
1118
|
+
# Built-in methods have __module__ set to None; recover the module
|
|
1119
|
+
# from the bound object (the class itself for class-bound methods).
|
|
1120
|
+
obj = getattr(value, "__self__", None)
|
|
1121
|
+
if obj is not None:
|
|
1122
|
+
cls = obj if isinstance(obj, type) else type(obj)
|
|
1123
|
+
module = cls.__module__
|
|
1124
|
+
if module is None or module == "builtins":
|
|
1125
|
+
return value.__qualname__
|
|
1126
|
+
return f"{module}.{value.__qualname__}"
|
|
1127
|
+
elif isinstance(value, _Template):
|
|
1128
|
+
tree = _template_to_ast(value)
|
|
1129
|
+
return ast.unparse(tree)
|
|
1130
|
+
if value is ...:
|
|
1131
|
+
return "..."
|
|
1132
|
+
return repr(value)
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
def annotations_to_string(annotations):
|
|
1136
|
+
"""Convert an annotation dict containing values to approximately the STRING format.
|
|
1137
|
+
|
|
1138
|
+
Always returns a fresh a dictionary.
|
|
1139
|
+
"""
|
|
1140
|
+
return {
|
|
1141
|
+
n: t if isinstance(t, str) else type_repr(t)
|
|
1142
|
+
for n, t in annotations.items()
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
def _rewrite_star_unpack(arg):
|
|
1147
|
+
"""If the given argument annotation expression is a star unpack e.g. `'*Ts'`
|
|
1148
|
+
rewrite it to a valid expression.
|
|
1149
|
+
"""
|
|
1150
|
+
if arg.lstrip().startswith("*"):
|
|
1151
|
+
return f"({arg},)[0]" # E.g. (*Ts,)[0] or (*tuple[int, int],)[0]
|
|
1152
|
+
else:
|
|
1153
|
+
return arg
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
def _get_and_call_annotate(obj, format):
|
|
1157
|
+
"""Get the __annotate__ function and call it.
|
|
1158
|
+
|
|
1159
|
+
May not return a fresh dictionary.
|
|
1160
|
+
"""
|
|
1161
|
+
annotate = getattr(obj, "__annotate__", None)
|
|
1162
|
+
if annotate is not None:
|
|
1163
|
+
ann = call_annotate_function(annotate, format, owner=obj)
|
|
1164
|
+
if not isinstance(ann, dict):
|
|
1165
|
+
raise ValueError(f"{obj!r}.__annotate__ returned a non-dict")
|
|
1166
|
+
return ann
|
|
1167
|
+
return None
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
_BASE_GET_ANNOTATIONS = type.__dict__["__annotations__"].__get__
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
def _get_dunder_annotations(obj):
|
|
1174
|
+
"""Return the annotations for an object, checking that it is a dictionary.
|
|
1175
|
+
|
|
1176
|
+
Does not return a fresh dictionary.
|
|
1177
|
+
"""
|
|
1178
|
+
# This special case is needed to support types defined under
|
|
1179
|
+
# from __future__ import annotations, where accessing the __annotations__
|
|
1180
|
+
# attribute directly might return annotations for the wrong class.
|
|
1181
|
+
if isinstance(obj, type):
|
|
1182
|
+
try:
|
|
1183
|
+
ann = _BASE_GET_ANNOTATIONS(obj)
|
|
1184
|
+
except AttributeError:
|
|
1185
|
+
# For static types, the descriptor raises AttributeError.
|
|
1186
|
+
return None
|
|
1187
|
+
else:
|
|
1188
|
+
ann = getattr(obj, "__annotations__", None)
|
|
1189
|
+
if ann is None:
|
|
1190
|
+
return None
|
|
1191
|
+
|
|
1192
|
+
if not isinstance(ann, dict):
|
|
1193
|
+
raise ValueError(f"{obj!r}.__annotations__ is neither a dict nor None")
|
|
1194
|
+
return ann
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
class _ExtraNameFixer(ast.NodeTransformer):
|
|
1198
|
+
"""Fixer for __extra_names__ items in ForwardRef __repr__ and string evaluation"""
|
|
1199
|
+
def __init__(self, extra_names):
|
|
1200
|
+
self.extra_names = extra_names
|
|
1201
|
+
|
|
1202
|
+
def visit_Name(self, node: ast.Name):
|
|
1203
|
+
if (new_name := self.extra_names.get(node.id, _sentinel)) is not _sentinel:
|
|
1204
|
+
node = ast.Name(id=type_repr(new_name))
|
|
1205
|
+
return node
|