From 7727a78e3b4c49585daec4c955ca6c2f7095a781 Mon Sep 17 00:00:00 2001 From: Benjamin Moran Date: Fri, 5 Jan 2024 15:30:03 +0900 Subject: [PATCH] mypy doesn't like module level properties. --- .mypy.ini | 4 ++-- esper/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.mypy.ini b/.mypy.ini index 49aa79b..fc663a0 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -10,11 +10,11 @@ warn_unused_ignores = True warn_return_any = True no_implicit_reexport = True strict_equality = True -strict_concatenate = True +extra_checks = True [mypy-esper] disallow_untyped_defs = True disallow_untyped_calls = True [mypy-tests] -check_untyped_defs = True \ No newline at end of file +check_untyped_defs = True diff --git a/esper/__init__.py b/esper/__init__.py index 59213e6..af0702f 100644 --- a/esper/__init__.py +++ b/esper/__init__.py @@ -567,7 +567,7 @@ def switch_world(name: str) -> None: _current_context = name -@property +@property # type: ignore def current_world() -> str: """The currently active World context.