mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
requirements: Upgrade mypy from 0.761 to 0.770.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
8e93175822
commit
d3c55c166e
@@ -143,11 +143,12 @@ def find_log_caller_module(record: logging.LogRecord) -> Optional[str]:
|
||||
# we find something in the same source file, and that should give the
|
||||
# right module name.
|
||||
f = logging.currentframe()
|
||||
while f is not None:
|
||||
while True:
|
||||
if f.f_code.co_filename == record.pathname:
|
||||
return f.f_globals.get('__name__')
|
||||
if f.f_back is None:
|
||||
return None
|
||||
f = f.f_back
|
||||
return None # type: ignore # required because of previous ignore on f
|
||||
|
||||
logger_nicknames = {
|
||||
'root': '', # This one is more like undoing a nickname.
|
||||
|
||||
Reference in New Issue
Block a user