Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jul 8, 2024
1 parent b0bd73e commit 1e9c3dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/antsibull_core/app_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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]
1 change: 0 additions & 1 deletion src/antsibull_core/schemas/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1e9c3dc

Please sign in to comment.