Skip to content

Commit

Permalink
Account for pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachaa-Thanasius committed Sep 21, 2024
1 parent 446a0cc commit 168381d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defer_imports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ class DeferredContext:
__slots__ = ("is_active", "_import_ctx_token", "_defer_ctx_token")

def __enter__(self) -> None:
self.is_active = bool(_current_defer_config.get(False))
self.is_active: bool = bool(_current_defer_config.get(False))
if self.is_active:
self._defer_ctx_token = _is_deferred.set(True)
self._import_ctx_token = _original_import.set(builtins.__import__)
Expand Down

0 comments on commit 168381d

Please sign in to comment.