How are custom classes created that should be denoted in a Python 3.5 type?
from typing import List
from debt import Debt
class Debts:
def __init__(self, debts: List[Debt]):
self.overall = debts
I know typing.TypeVar, but PyCharm gives me the same error for this as well. What am I missing?
source
share