Skip to content

Commit

Permalink
Changed type[] to Type[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandera committed Jun 2, 2023
1 parent 51398a5 commit 19c5688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generalimport/dunders.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Type

from generalimport.generalimport_bottom import _inside_typing
from generalimport.import_catcher import ErrorPars

Expand All @@ -6,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 19c5688

Please sign in to comment.