Skip to content

Commit

Permalink
support 3.8 type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Jul 9, 2023
1 parent ada9674 commit 36b8100
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ixbrlparse/components/formats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
import re
import warnings
from typing import Optional, Tuple, Type, Union
from typing import List, Optional, Tuple, Type, Union

from ixbrlparse.components._base import ixbrlFormat
from ixbrlparse.hookspecs import hookimpl
Expand Down Expand Up @@ -151,7 +151,7 @@ class ixtDateDayMonthYear(ixtDateFormat): # noqa: N801


@hookimpl
def ixbrl_add_formats() -> list[Type[ixbrlFormat]]:
def ixbrl_add_formats() -> List[Type[ixbrlFormat]]:
return [
ixtZeroDash,
ixtNoContent,
Expand Down
6 changes: 3 additions & 3 deletions src/ixbrlparse/hookspecs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Type
from typing import List, Type

import pluggy

Expand All @@ -9,9 +9,9 @@


@hookspec
def ixbrl_add_formats() -> list[Type[ixbrlFormat]]: # type: ignore
def ixbrl_add_formats() -> List[Type[ixbrlFormat]]: # type: ignore
"""Add new formats to the ixbrlparse library.
Returns:
list[[ixbrlFormat]]: A list of ixbrlFormat classes.
List[[ixbrlFormat]]: A list of ixbrlFormat classes.
"""

0 comments on commit 36b8100

Please sign in to comment.