mirror of
https://github.com/apache/superset.git
synced 2026-05-25 17:55:15 +00:00
1 line
13 KiB
JSON
1 line
13 KiB
JSON
{".class": "MypyFile", "_fullname": "redis.lock", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "Any": {".class": "SymbolTableNode", "cross_ref": "typing.Any", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Lock": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "redis.lock.Lock", "name": "Lock", "type_vars": []}, "flags": [], "fullname": "redis.lock.Lock", "metaclass_type": null, "metadata": {}, "module_name": "redis.lock", "mro": ["redis.lock.Lock", "builtins.object"], "names": {".class": "SymbolTable", "__enter__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.__enter__", "name": "__enter__", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": [null], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__enter__ of Lock", "ret_type": "redis.lock.Lock", "type_guard": null, "variables": []}}}, "__exit__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 0], "arg_names": ["self", "exc_type", "exc_value", "traceback"], "flags": [], "fullname": "redis.lock.Lock.__exit__", "name": "__exit__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 0], "arg_names": [null, null, null, null], "arg_types": ["redis.lock.Lock", {".class": "UnionType", "items": [{".class": "TypeType", "item": "builtins.BaseException"}, {".class": "NoneType"}]}, {".class": "UnionType", "items": ["builtins.BaseException", {".class": "NoneType"}]}, {".class": "UnionType", "items": ["types.TracebackType", {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__exit__ of Lock", "ret_type": {".class": "UnionType", "items": ["builtins.bool", {".class": "NoneType"}]}, "type_guard": null, "variables": []}}}, "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0, 1, 1, 1, 1, 1], "arg_names": ["self", "redis", "name", "timeout", "sleep", "blocking", "blocking_timeout", "thread_local"], "flags": [], "fullname": "redis.lock.Lock.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 1, 1, 1, 1, 1], "arg_names": ["self", "redis", "name", "timeout", "sleep", "blocking", "blocking_timeout", "thread_local"], "arg_types": ["redis.lock.Lock", {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "redis.client.Redis"}, "builtins.str", {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, "builtins.float", "builtins.bool", {".class": "UnionType", "items": ["builtins.float", {".class": "NoneType"}]}, "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__init__ of Lock", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "acquire": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 1, 1, 1], "arg_names": ["self", "blocking", "blocking_timeout", "token"], "flags": [], "fullname": "redis.lock.Lock.acquire", "name": "acquire", "type": {".class": "CallableType", "arg_kinds": [0, 1, 1, 1], "arg_names": ["self", "blocking", "blocking_timeout", "token"], "arg_types": ["redis.lock.Lock", {".class": "UnionType", "items": ["builtins.bool", {".class": "NoneType"}]}, {".class": "UnionType", "items": [{".class": "NoneType"}, "builtins.int", "builtins.float"]}, {".class": "UnionType", "items": [{".class": "TypeAliasType", "args": [], "type_ref": "redis.lock._TokenValue"}, {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "acquire of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "do_acquire": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "token"], "flags": [], "fullname": "redis.lock.Lock.do_acquire", "name": "do_acquire", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "token"], "arg_types": ["redis.lock.Lock", {".class": "TypeAliasType", "args": [], "type_ref": "redis.lock._TokenValue"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "do_acquire of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "do_extend": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "additional_time", "replace_ttl"], "flags": [], "fullname": "redis.lock.Lock.do_extend", "name": "do_extend", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "additional_time", "replace_ttl"], "arg_types": ["redis.lock.Lock", {".class": "UnionType", "items": ["builtins.int", "builtins.float"]}, "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "do_extend of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "do_reacquire": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.do_reacquire", "name": "do_reacquire", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "do_reacquire of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "do_release": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "expected_token"], "flags": [], "fullname": "redis.lock.Lock.do_release", "name": "do_release", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "expected_token"], "arg_types": ["redis.lock.Lock", {".class": "TypeAliasType", "args": [], "type_ref": "redis.lock._TokenValue"}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "do_release of Lock", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "extend": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 1], "arg_names": ["self", "additional_time", "replace_ttl"], "flags": [], "fullname": "redis.lock.Lock.extend", "name": "extend", "type": {".class": "CallableType", "arg_kinds": [0, 0, 1], "arg_names": ["self", "additional_time", "replace_ttl"], "arg_types": ["redis.lock.Lock", {".class": "UnionType", "items": ["builtins.int", "builtins.float"]}, "builtins.bool"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "extend of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "local": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Var", "flags": ["is_initialized_in_class", "is_ready"], "fullname": "redis.lock.Lock.local", "name": "local", "type": "redis.lock._Local"}}, "locked": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.locked", "name": "locked", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "locked of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "owned": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.owned", "name": "owned", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "owned of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "reacquire": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.reacquire", "name": "reacquire", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "reacquire of Lock", "ret_type": "builtins.bool", "type_guard": null, "variables": []}}}, "register_scripts": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.register_scripts", "name": "register_scripts", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "register_scripts of Lock", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}, "release": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "redis.lock.Lock.release", "name": "release", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["redis.lock.Lock"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "release of Lock", "ret_type": {".class": "NoneType"}, "type_guard": null, "variables": []}}}}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "Protocol": {".class": "SymbolTableNode", "cross_ref": "typing_extensions.Protocol", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Redis": {".class": "SymbolTableNode", "cross_ref": "redis.client.Redis", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Text": {".class": "SymbolTableNode", "cross_ref": "typing.Text", "kind": "Gdef", "module_hidden": true, "module_public": false}, "TracebackType": {".class": "SymbolTableNode", "cross_ref": "types.TracebackType", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Type": {".class": "SymbolTableNode", "cross_ref": "typing.Type", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Union": {".class": "SymbolTableNode", "cross_ref": "typing.Union", "kind": "Gdef", "module_hidden": true, "module_public": false}, "_Local": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": ["token"], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "redis.lock._Local", "name": "_Local", "type_vars": []}, "flags": ["is_abstract", "is_protocol"], "fullname": "redis.lock._Local", "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "redis.lock", "mro": ["redis.lock._Local", "builtins.object"], "names": {".class": "SymbolTable", "token": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Var", "flags": ["is_initialized_in_class", "is_abstract_var", "is_ready"], "fullname": "redis.lock._Local.token", "name": "token", "type": {".class": "UnionType", "items": [{".class": "TypeAliasType", "args": [], "type_ref": "redis.lock._TokenValue"}, {".class": "NoneType"}]}}}}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "_TokenValue": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeAlias", "alias_tvars": [], "column": 0, "fullname": "redis.lock._TokenValue", "line": 7, "no_args": false, "normalized": false, "target": {".class": "UnionType", "items": ["builtins.bytes", "builtins.str"]}}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "redis.lock.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "redis.lock.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "redis.lock.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "redis.lock.__package__", "name": "__package__", "type": "builtins.str"}}}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.7/lib/python3.7/site-packages/redis-stubs/lock.pyi"} |