Skip to content

Commit

Permalink
#161 - Remove unimportbar type hint 'Self'
Browse files Browse the repository at this point in the history
  • Loading branch information
Judith committed Nov 14, 2024
1 parent 7dd7c59 commit ec6adab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parkapi_sources/models/parking_site_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from datetime import datetime, timezone
from decimal import Decimal
from typing import Optional, Self
from typing import Optional

from validataclass.dataclasses import Default, DefaultUnset, ValidataclassMixin, validataclass
from validataclass.exceptions import DataclassPostValidationError, ValidationError
Expand Down Expand Up @@ -128,7 +128,7 @@ def __post_init__(self):
),
)

def from_dict(self, data: dict) -> Self:
def from_dict(self, data: dict):
for field in data.keys():
setattr(self, field, data[field])
return self
Expand Down

0 comments on commit ec6adab

Please sign in to comment.