Skip to content
Snippets Groups Projects
Commit 8143b63e authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Improve a return type annotation

parent 7d5e9724
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import os
import mimetypes
import importlib
import pkgutil
from typing import TypeVar
from typing import TypeVar, List
from . import abstract, unsupported_extensions
......@@ -18,7 +18,7 @@ for module_loader, name, ispkg in pkgutil.walk_packages('.libmat2'):
importlib.import_module(name)
def _get_parsers() -> list:
def _get_parsers() -> List[T]:
""" Get all our parsers!"""
def __get_parsers(cls):
return cls.__subclasses__() + \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment