Skip to content

Commit

Permalink
FIXUP: fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
deeplow committed Aug 31, 2023
1 parent 9871876 commit bc4993d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerzone/conversion/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional
from typing import List, Optional, Type


class ConversionException(Exception):
Expand All @@ -11,7 +11,7 @@ def __init__(self, error_message: Optional[str] = None) -> None:
super().__init__(self.error_message)

@classmethod
def get_subclasses(cls) -> List[type["ConversionException"]]:
def get_subclasses(cls) -> List[Type["ConversionException"]]:
subclasses = [cls]
for subclass in cls.__subclasses__():
subclasses += subclass.get_subclasses()
Expand Down

0 comments on commit bc4993d

Please sign in to comment.