Skip to content

Commit

Permalink
Rename reserved word deconfliction to match previously used pattern
Browse files Browse the repository at this point in the history
The reserved word `from` was replaced with `from_` in `TicketDoc`.  This follows that pattern.

Co-authored-by: David Redmin <david.redmin@gwe.cisa.dhs.gov>
Co-authored-by: Jeremy Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
  • Loading branch information
3 people committed Oct 18, 2024
1 parent 1d3cf32 commit 07724b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cyhy_db/models/place_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PlaceDoc(Document):

model_config = ConfigDict(extra="forbid")

clazz: str = Field(alias="class") # 'class' is a reserved keyword in Python
class_: str = Field(alias="class") # 'class' is a reserved keyword in Python
country_name: str
country: str
county_fips: Optional[str] = None
Expand Down

0 comments on commit 07724b2

Please sign in to comment.