Removed explicit properties from LatLongUpdateEvent.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
They clash with the dynamic getters from the Event class.
This commit is contained in:
parent
cb6f1baf19
commit
e40928dac5
1 changed files with 0 additions and 32 deletions
|
@ -52,37 +52,5 @@ class LatLongUpdateEvent(Event):
|
|||
**kwargs,
|
||||
)
|
||||
|
||||
@property
|
||||
def latitude(self) -> float:
|
||||
return self.args["latitude"]
|
||||
|
||||
@property
|
||||
def longitude(self) -> float:
|
||||
return self.args["longitude"]
|
||||
|
||||
@property
|
||||
def altitude(self) -> Optional[float]:
|
||||
return self.args.get("altitude")
|
||||
|
||||
@property
|
||||
def address(self) -> Optional[str]:
|
||||
return self.args.get("address")
|
||||
|
||||
@property
|
||||
def locality(self) -> Optional[str]:
|
||||
return self.args.get("locality")
|
||||
|
||||
@property
|
||||
def country(self) -> Optional[str]:
|
||||
return self.args.get("country")
|
||||
|
||||
@property
|
||||
def description(self) -> Optional[str]:
|
||||
return self.args.get("description")
|
||||
|
||||
@property
|
||||
def timestamp(self) -> Optional[float]:
|
||||
return self.args.get("timestamp")
|
||||
|
||||
|
||||
# vim:sw=4:ts=4:et:
|
||||
|
|
Loading…
Add table
Reference in a new issue