1
0
mirror of synced 2024-11-22 09:14:23 +01:00

Improve a return type annotation

This commit is contained in:
totallylegit 2018-06-04 20:29:41 +02:00
parent 7d5e972493
commit 8143b63ee3

View File

@ -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__() + \