Skip to content

Commit

Permalink
ruff codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Aug 12, 2024
1 parent e8629da commit d27c28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ninja/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
self.path: str = path
self.methods: List[str] = methods
self.view_func: Callable = view_func
self.api: "NinjaAPI" = cast("NinjaAPI", None)
self.api: NinjaAPI = cast("NinjaAPI", None)
if url_name is not None:
self.url_name = url_name

Expand Down
2 changes: 1 addition & 1 deletion ninja/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
throttle: Union[BaseThrottle, List[BaseThrottle], NOT_SET_TYPE] = NOT_SET,
tags: Optional[List[str]] = None,
) -> None:
self.api: Optional["NinjaAPI"] = None
self.api: Optional[NinjaAPI] = None
self.auth = auth
self.throttle = throttle
self.tags = tags
Expand Down

0 comments on commit d27c28a

Please sign in to comment.