Skip to content

Commit

Permalink
Changed to typing.List for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandera committed Jun 2, 2023
1 parent e828c9b commit 3ff4f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generalimport/dunders.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Type
from typing import Type, List

from generalimport.generalimport_bottom import _inside_typing
from generalimport.import_catcher import ErrorPars
Expand All @@ -8,7 +8,7 @@ class DynamicDunder:
""" Inherit to define a dynamic dunder.
All subclasses' triggers are tested for truthy before a MissingOptionalDependency is raised.
Returns result() of first triggered dynamic dunder. """
subclasses: list[Type["DynamicDunder"]] = []
subclasses: List[Type["DynamicDunder"]] = []

def __init_subclass__(cls, **kwargs):
cls.subclasses.append(cls)
Expand Down

0 comments on commit 3ff4f05

Please sign in to comment.