Skip to content

Commit

Permalink
Fix typing for py37
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w committed Nov 15, 2022
1 parent 4612ded commit 40577da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/django_linear_migrations/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from typing import cast
from typing import Generator
from typing import Iterable
from typing import List
from typing import Tuple

from django.apps import AppConfig
from django.apps import apps
Expand Down Expand Up @@ -69,7 +71,7 @@ def get_graph_plan(
if app_names:
nodes = [key for key in loader.graph.leaf_nodes() if key[0] in app_names]
plan = loader.graph._generate_plan(nodes, at_end=True)
return cast(list[tuple[str, str]], plan)
return cast(List[Tuple[str, str]], plan)


class MigrationDetails:
Expand Down

0 comments on commit 40577da

Please sign in to comment.