use __future__ annotations
This commit is contained in:
parent
703e7c67a2
commit
24c87e423b
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
from datetime import datetime, timedelta
|
||||
|
@ -42,7 +43,7 @@ class FallbackLocation:
|
|||
accuracy: Optional[float] = None,
|
||||
elevation: Optional[float] = None,
|
||||
datasource: Optional[str] = None,
|
||||
) -> 'FallbackLocation':
|
||||
) -> FallbackLocation:
|
||||
'''
|
||||
Create FallbackLocation from a start date and an end date
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue