1
0

invoices: fix type hint for get_address()

This commit is contained in:
SomberNight
2022-07-10 16:08:02 +02:00
parent 45a6290987
commit 68581ce80a
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ class Invoice(StoredObject):
status_str = _('Expires') + ' ' + age(expiration, include_seconds=True)
return status_str
def get_address(self) -> str:
def get_address(self) -> Optional[str]:
"""returns the first address, to be displayed in GUI"""
if self.is_lightning():
return self._lnaddr.get_fallback_address() or None