Skip to content

Commit

Permalink
Make Python<3.9 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
giffels committed Feb 28, 2022
1 parent ac18586 commit 96d4cc1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tardis/interfaces/siteadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ class SiteAdapterBaseModel(BaseModel):
"""

MachineTypes: List[str]
MachineTypeConfiguration: AttributeDict[str, AttributeDict[str, Any]]
MachineMetaData: AttributeDict[
str, AttributeDict[str, Any]
] # Use Any to avoid automated conversion to int or float here, validate later
MachineTypeConfiguration: "AttributeDict[str, AttributeDict[str, Any]]"
MachineMetaData: "AttributeDict[str, AttributeDict[str, Any]]"
# Use Any to avoid automated conversion to int or float here, validate later

class Config:
arbitrary_types_allowed = True
Expand Down

0 comments on commit 96d4cc1

Please sign in to comment.