ami / .mypy_cache /3.7 /torch /_six.data.json
patrickvonplaten's picture
upload all
c7a0c46
raw
history blame
7.83 kB
{".class": "MypyFile", "_fullname": "torch._six", "future_import_flags": [], "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "__annotations__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch._six.__annotations__", "name": "__annotations__", "type": {".class": "Instance", "args": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.dict"}}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch._six.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch._six.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch._six.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch._six.__package__", "name": "__package__", "type": "builtins.str"}}, "inf": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["has_explicit_value"], "fullname": "torch._six.inf", "name": "inf", "type": "builtins.float"}}, "math": {".class": "SymbolTableNode", "cross_ref": "math", "kind": "Gdef"}, "metaclass@32": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch._six.metaclass@32", "name": "metaclass", "type_vars": []}, "deletable_attributes": [], "flags": ["fallback_to_any"], "fullname": "torch._six.metaclass@32", "has_param_spec_type": false, "metaclass_type": null, "metadata": {}, "module_name": "torch._six", "mro": ["torch._six.metaclass@32", "builtins.object"], "names": {".class": "SymbolTable", "__new__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 0], "arg_names": ["cls", "name", "this_bases", "d"], "flags": [], "fullname": "torch._six.metaclass@32.__new__", "name": "__new__", "type": null}}, "__prepare__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Decorator", "func": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["cls", "name", "this_bases"], "flags": ["is_class", "is_decorated"], "fullname": "torch._six.metaclass@32.__prepare__", "name": "__prepare__", "type": null}, "is_overload": false, "var": {".class": "Var", "flags": ["is_initialized_in_class", "is_classmethod", "is_ready"], "fullname": null, "name": "__prepare__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["cls", "name", "this_bases"], "arg_types": [{".class": "TypeType", "item": "torch._six.metaclass@32"}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}], "bound_args": [], "def_extras": {"first_arg": "cls"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": true, "is_ellipsis_args": false, "name": "__prepare__ of metaclass", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "nan": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["has_explicit_value"], "fullname": "torch._six.nan", "name": "nan", "type": "builtins.float"}}, "string_classes": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["has_explicit_value"], "fullname": "torch._six.string_classes", "name": "string_classes", "type": {".class": "TupleType", "implicit": false, "items": [{".class": "Overloaded", "items": [{".class": "CallableType", "arg_kinds": [1], "arg_names": ["object"], "arg_types": ["builtins.object"], "bound_args": ["builtins.str"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "str", "ret_type": "builtins.str", "type_guard": null, "variables": []}, {".class": "CallableType", "arg_kinds": [0, 1, 1], "arg_names": ["object", "encoding", "errors"], "arg_types": [{".class": "TypeAliasType", "args": [], "type_ref": "_typeshed.ReadableBuffer"}, "builtins.str", "builtins.str"], "bound_args": ["builtins.str"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "str", "ret_type": "builtins.str", "type_guard": null, "variables": []}]}, {".class": "Overloaded", "items": [{".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": [{".class": "Instance", "args": ["typing_extensions.SupportsIndex"], "type_ref": "typing.Iterable"}], "bound_args": ["builtins.bytes"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "bytes", "ret_type": "builtins.bytes", "type_guard": null, "variables": []}, {".class": "CallableType", "arg_kinds": [0, 0, 1], "arg_names": [null, "encoding", "errors"], "arg_types": ["builtins.str", "builtins.str", "builtins.str"], "bound_args": ["builtins.bytes"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "bytes", "ret_type": "builtins.bytes", "type_guard": null, "variables": []}, {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["typing_extensions.SupportsIndex"], "bound_args": ["builtins.bytes"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "bytes", "ret_type": "builtins.bytes", "type_guard": null, "variables": []}, {".class": "CallableType", "arg_kinds": [], "arg_names": [], "arg_types": [], "bound_args": ["builtins.bytes"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "bytes", "ret_type": "builtins.bytes", "type_guard": null, "variables": []}, {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["typing.SupportsBytes"], "bound_args": ["builtins.bytes"], "def_extras": {"first_arg": "cls"}, "fallback": "abc.ABCMeta", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "bytes", "ret_type": "builtins.bytes", "type_guard": null, "variables": []}]}], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}}}, "with_metaclass": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 2], "arg_names": ["meta", "bases"], "flags": [], "fullname": "torch._six.with_metaclass", "name": "with_metaclass", "type": {".class": "CallableType", "arg_kinds": [0, 2], "arg_names": ["meta", "bases"], "arg_types": ["builtins.type", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "with_metaclass", "ret_type": "builtins.type", "type_guard": null, "variables": []}}}}, "path": "/home/patrick/hf/lib/python3.7/site-packages/torch/_six.py"}