Skip to content

Commit

Permalink
ruff update fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Nov 25, 2024
1 parent f8a389a commit d0f926f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 deletions fastkml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,36 +62,36 @@

__all__ = [
"KML",
"AtomAuthor",
"AtomContributor",
"AtomLink",
"BalloonStyle",
"Camera",
"Data",
"Document",
"ExtendedData",
"Folder",
"GroundOverlay",
"Placemark",
"TimeSpan",
"TimeStamp",
"ExtendedData",
"Data",
"Icon",
"IconStyle",
"LabelStyle",
"LineString",
"LineStyle",
"LinearRing",
"Link",
"LookAt",
"MultiGeometry",
"PhotoOverlay",
"Placemark",
"Point",
"PolyStyle",
"Polygon",
"Schema",
"SchemaData",
"ScreenOverlay",
"StyleUrl",
"Style",
"StyleMap",
"IconStyle",
"LineStyle",
"PolyStyle",
"LabelStyle",
"BalloonStyle",
"AtomLink",
"Icon",
"Link",
"Point",
"LineString",
"LinearRing",
"Polygon",
"MultiGeometry",
"AtomAuthor",
"AtomContributor",
"Camera",
"LookAt",
"StyleUrl",
"TimeSpan",
"TimeStamp",
]
4 changes: 2 additions & 2 deletions fastkml/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def __init__(
self.ns: str = (
self.name_spaces.get(self._default_nsid, "") if ns is None else ns
)
for arg in kwargs:
setattr(self, arg, kwargs[arg])
for arg, val in kwargs.items():
setattr(self, arg, val)
self.__kwarg_keys = tuple(kwargs.keys())

def __repr__(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion fastkml/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ def get(self, cls: Type["_XMLObject"]) -> List[RegistryItem]:

registry = Registry()

__all__ = ["registry", "RegistryItem"]
__all__ = ["RegistryItem", "registry"]

0 comments on commit d0f926f

Please sign in to comment.