Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Sep 10, 2024
1 parent db45fba commit f516381
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rockcraft/extensions/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import pathlib
import posixpath
import re
from typing import Any, Dict, Tuple
from typing import Any

from overrides import override

Expand All @@ -37,7 +37,7 @@ class FastAPIFramework(Extension):

@staticmethod
@override
def get_supported_bases() -> Tuple[str, ...]:
def get_supported_bases() -> tuple[str, ...]:
"""Return supported bases."""
return "bare", "[email protected]"

Expand All @@ -52,7 +52,7 @@ def get_root_snippet(self) -> dict[str, Any]:
"""Return the root snippet to apply."""
self._check_project()

snippet: Dict[str, Any] = {
snippet: dict[str, Any] = {
"run_user": "_daemon_",
"services": {
"fastapi": {
Expand Down Expand Up @@ -97,7 +97,7 @@ def _get_parts(self) -> dict:
if self.yaml_data["base"] == "bare":
stage_packages = ["python3.12-venv_ensurepip"]

parts: Dict[str, Any] = {
parts: dict[str, Any] = {
"fastapi-framework/dependencies": {
"plugin": "python",
"stage-packages": stage_packages,
Expand All @@ -124,7 +124,7 @@ def _get_parts(self) -> dict:
}
return parts

def _get_install_app_part(self) -> Dict[str, Any]:
def _get_install_app_part(self) -> dict[str, Any]:
source_files = [f.name for f in sorted(self.project_root.iterdir())]
# if prime is not in exclude mode, use it to generate the stage and organize
if self._app_prime and self._app_prime[0] and self._app_prime[0][0] != "-":
Expand Down

0 comments on commit f516381

Please sign in to comment.