| {".class": "MypyFile", "_fullname": "torch.package.file_structure_representation", "future_import_flags": [], "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "Dict": {".class": "SymbolTableNode", "cross_ref": "typing.Dict", "kind": "Gdef"}, "Directory": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "torch.package.file_structure_representation.Directory", "name": "Directory", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "torch.package.file_structure_representation.Directory", "has_param_spec_type": false, "metaclass_type": null, "metadata": {}, "module_name": "torch.package.file_structure_representation", "mro": ["torch.package.file_structure_representation.Directory", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "name", "is_dir"], "flags": [], "fullname": "torch.package.file_structure_representation.Directory.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "name", "is_dir"], "arg_types": ["torch.package.file_structure_representation.Directory", "builtins.str", "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of Directory", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "__str__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": [null], "flags": [], "fullname": "torch.package.file_structure_representation.Directory.__str__", "name": "__str__", "type": null}}, "_add_file": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "file_path"], "flags": [], "fullname": "torch.package.file_structure_representation.Directory._add_file", "name": "_add_file", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "file_path"], "arg_types": ["torch.package.file_structure_representation.Directory", "builtins.str"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_add_file of Directory", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}, "_get_dir": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "dirs"], "flags": [], "fullname": "torch.package.file_structure_representation.Directory._get_dir", "name": "_get_dir", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "dirs"], "arg_types": ["torch.package.file_structure_representation.Directory", {".class": "Instance", "args": ["builtins.str"], "type_ref": "builtins.list"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_get_dir of Directory", "ret_type": "torch.package.file_structure_representation.Directory", "type_guard": null, "variables": []}}}, "_stringify_tree": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 1, 1], "arg_names": ["self", "str_list", "preamble", "dir_ptr"], "flags": [], "fullname": "torch.package.file_structure_representation.Directory._stringify_tree", "name": "_stringify_tree", "type": {".class": "CallableType", "arg_kinds": [0, 0, 1, 1], "arg_names": ["self", "str_list", "preamble", "dir_ptr"], "arg_types": ["torch.package.file_structure_representation.Directory", {".class": "Instance", "args": ["builtins.str"], "type_ref": "builtins.list"}, "builtins.str", "builtins.str"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_stringify_tree of Directory", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 1}, "type_guard": null, "variables": []}}}, "children": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": ["explicit_self_type", "is_ready"], "fullname": "torch.package.file_structure_representation.Directory.children", "name": "children", "type": {".class": "Instance", "args": ["builtins.str", "torch.package.file_structure_representation.Directory"], "type_ref": "builtins.dict"}}}, "has_file": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "filename"], "flags": [], "fullname": "torch.package.file_structure_representation.Directory.has_file", "name": "has_file", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "filename"], "arg_types": ["torch.package.file_structure_representation.Directory", "builtins.str"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "has_file of Directory", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "is_dir": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.package.file_structure_representation.Directory.is_dir", "name": "is_dir", "type": "builtins.bool"}}, "name": {".class": "SymbolTableNode", "implicit": true, "kind": "Mdef", "node": {".class": "Var", "flags": [], "fullname": "torch.package.file_structure_representation.Directory.name", "name": "name", "type": "builtins.str"}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "GlobGroup": {".class": "SymbolTableNode", "cross_ref": "torch.package.glob_group.GlobGroup", "kind": "Gdef"}, "GlobPattern": {".class": "SymbolTableNode", "cross_ref": "torch.package.glob_group.GlobPattern", "kind": "Gdef"}, "List": {".class": "SymbolTableNode", "cross_ref": "typing.List", "kind": "Gdef"}, "__annotations__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.package.file_structure_representation.__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.package.file_structure_representation.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.package.file_structure_representation.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.package.file_structure_representation.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "torch.package.file_structure_representation.__package__", "name": "__package__", "type": "builtins.str"}}, "_create_directory_from_file_list": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 1, 1], "arg_names": ["filename", "file_list", "include", "exclude"], "flags": [], "fullname": "torch.package.file_structure_representation._create_directory_from_file_list", "name": "_create_directory_from_file_list", "type": {".class": "CallableType", "arg_kinds": [0, 0, 1, 1], "arg_names": ["filename", "file_list", "include", "exclude"], "arg_types": ["builtins.str", {".class": "Instance", "args": ["builtins.str"], "type_ref": "builtins.list"}, {".class": "TypeAliasType", "args": [], "type_ref": "torch.package.glob_group.GlobPattern"}, {".class": "TypeAliasType", "args": [], "type_ref": "torch.package.glob_group.GlobPattern"}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "_create_directory_from_file_list", "ret_type": "torch.package.file_structure_representation.Directory", "type_guard": null, "variables": []}}}}, "path": "/home/patrick/hf/lib/python3.7/site-packages/torch/package/file_structure_representation.py"} |