Skip to content

Commit

Permalink
splat kwargs to allow to register arbitrary elements #311
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Apr 19, 2024
1 parent 9970297 commit c20d77a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastkml/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def __init__(
self.ns: str = self._default_ns if ns is None else ns
name_spaces = name_spaces or {}
self.name_spaces = {**config.NAME_SPACES, **name_spaces}
for arg in kwargs:
setattr(self, arg, kwargs[arg])

def __repr__(self) -> str:
"""Create a string (c)representation for _XMLObject."""
Expand Down

0 comments on commit c20d77a

Please sign in to comment.