⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
typeguard
/
View File Name :
_memo.py
from __future__ import annotations from typing import Any from typeguard._config import TypeCheckConfiguration, global_config class TypeCheckMemo: """ Contains information necessary for type checkers to do their work. .. attribute:: globals :type: dict[str, Any] Dictionary of global variables to use for resolving forward references. .. attribute:: locals :type: dict[str, Any] Dictionary of local variables to use for resolving forward references. .. attribute:: self_type :type: type | None When running type checks within an instance method or class method, this is the class object that the first argument (usually named ``self`` or ``cls``) refers to. .. attribute:: config :type: TypeCheckConfiguration Contains the configuration for a particular set of type checking operations. """ __slots__ = "globals", "locals", "self_type", "config" def __init__( self, globals: dict[str, Any], locals: dict[str, Any], *, self_type: type | None = None, config: TypeCheckConfiguration = global_config, ): self.globals = globals self.locals = locals self.self_type = self_type self.config = config