Improve a return type annotation
This commit is contained in:
parent
7d5e972493
commit
8143b63ee3
@ -2,7 +2,7 @@ import os
|
|||||||
import mimetypes
|
import mimetypes
|
||||||
import importlib
|
import importlib
|
||||||
import pkgutil
|
import pkgutil
|
||||||
from typing import TypeVar
|
from typing import TypeVar, List
|
||||||
|
|
||||||
from . import abstract, unsupported_extensions
|
from . import abstract, unsupported_extensions
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ for module_loader, name, ispkg in pkgutil.walk_packages('.libmat2'):
|
|||||||
importlib.import_module(name)
|
importlib.import_module(name)
|
||||||
|
|
||||||
|
|
||||||
def _get_parsers() -> list:
|
def _get_parsers() -> List[T]:
|
||||||
""" Get all our parsers!"""
|
""" Get all our parsers!"""
|
||||||
def __get_parsers(cls):
|
def __get_parsers(cls):
|
||||||
return cls.__subclasses__() + \
|
return cls.__subclasses__() + \
|
||||||
|
Loading…
Reference in New Issue
Block a user