diff --git a/src/antsibull_core/app_context.py b/src/antsibull_core/app_context.py index 9d6c246..819f56f 100644 --- a/src/antsibull_core/app_context.py +++ b/src/antsibull_core/app_context.py @@ -324,7 +324,7 @@ def _copy_lib_context() -> LibContext: try: old_context = lib_ctx.get() except LookupError: - old_context = LibContext() + old_context = LibContext() # pyre-ignore[20] # Copy just in case contexts are allowed to be writable in the the future return old_context.model_copy() @@ -334,7 +334,7 @@ def _copy_app_context() -> AppContext: try: old_context = app_ctx.get() except LookupError: - old_context = AppContext() + old_context = AppContext() # pyre-ignore[20] # Copy just in case contexts are allowed to be writable in the the future return old_context.model_copy() @@ -423,5 +423,5 @@ def get() -> AppContextT: # # Set initial contexts with default values # -lib_ctx.set(LibContext()) -app_ctx.set(AppContext()) +lib_ctx.set(LibContext()) # pyre-ignore[20] +app_ctx.set(AppContext()) # pyre-ignore[20] diff --git a/src/antsibull_core/schemas/context.py b/src/antsibull_core/schemas/context.py index 882a64a..7e112dc 100644 --- a/src/antsibull_core/schemas/context.py +++ b/src/antsibull_core/schemas/context.py @@ -45,7 +45,6 @@ class AppContext(BaseModel): @cached_property def extra(self) -> ContextDict: - # pylint: disable-next=no-member d = (self.__pydantic_extra__ or {}).get("extra", {}) return ContextDict.validate_and_convert(d)