Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbdchd committed Apr 25, 2024
1 parent c58da79 commit 19b8618
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web_api/s/squawk.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import subprocess
import sys
from pathlib import Path
from typing import Optional

SQUAWK_VERSION = "0.5.0"
APP_LABEL = "web_api"
Expand All @@ -21,7 +20,7 @@
_MIGRATION_REGEX = re.compile(r"^(\d{4,}_\w+)\.py$")


def _get_migration_id(filepath: str) -> Optional[str]:
def _get_migration_id(filepath: str) -> str | None:
"""
valid migrations:
0001_initial.py
Expand All @@ -39,7 +38,7 @@ def _get_migration_id(filepath: str) -> Optional[str]:
return match.groups()[0]


def _get_migration_ids() -> list[str]:
def _get_migration_ids() -> list[tuple[str, str | None]]:
current_branch = subprocess.run(
["git", "branch", "--show-current"], capture_output=True, check=True
)
Expand Down

0 comments on commit 19b8618

Please sign in to comment.