Use PEP 526 type annotations, add some type hints (#26464)

* Add some more type hints to helpers.event

* Change most type comments to variable types

* Remove some superfluous type hints
This commit is contained in:
Ville Skyttä 2019-09-07 09:48:58 +03:00 committed by GitHub
parent 5b3004c7b0
commit 33e1b44b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 152 additions and 174 deletions

View file

@ -162,11 +162,11 @@ class FinTsAccount(Entity):
def __init__(self, client: FinTsClient, account, name: str) -> None:
"""Initialize a FinTs balance account."""
self._client = client # type: FinTsClient
self._client = client
self._account = account
self._name = name # type: str
self._balance = None # type: float
self._currency = None # type: str
self._name = name
self._balance: float = None
self._currency: str = None
@property
def should_poll(self) -> bool:
@ -222,11 +222,11 @@ class FinTsHoldingsAccount(Entity):
def __init__(self, client: FinTsClient, account, name: str) -> None:
"""Initialize a FinTs holdings account."""
self._client = client # type: FinTsClient
self._name = name # type: str
self._client = client
self._name = name
self._account = account
self._holdings = []
self._total = None # type: float
self._total: float = None
@property
def should_poll(self) -> bool: