From 36b81001c0ae9a35e19a570d58a006df9876f3bc Mon Sep 17 00:00:00 2001 From: David Kane Date: Sun, 9 Jul 2023 16:03:28 +0100 Subject: [PATCH] support 3.8 type annotations --- src/ixbrlparse/components/formats.py | 4 ++-- src/ixbrlparse/hookspecs.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ixbrlparse/components/formats.py b/src/ixbrlparse/components/formats.py index bd7dd05..4e9a74e 100644 --- a/src/ixbrlparse/components/formats.py +++ b/src/ixbrlparse/components/formats.py @@ -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 @@ -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, diff --git a/src/ixbrlparse/hookspecs.py b/src/ixbrlparse/hookspecs.py index da049cc..f336849 100644 --- a/src/ixbrlparse/hookspecs.py +++ b/src/ixbrlparse/hookspecs.py @@ -1,4 +1,4 @@ -from typing import Type +from typing import List, Type import pluggy @@ -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. """