Skip to content

Commit

Permalink
spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvabanka committed Nov 7, 2024
1 parent c33c875 commit 7ad8850
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fastkml/kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,23 @@ def parse(
) -> Self:
"""
Parse a KML file and return a KML object.
Args:
----
file: The file to parse.
Can be a file path (str or Path), or a file-like object.
Keyword Args:
------------
ns (Optional[str]): The namespace of the KML file.
If not provided, it will be inferred from the root element.
name_spaces (Optional[Dict[str, str]]): Additional namespaces.
strict (bool): Whether to enforce strict parsing rules. Defaults to True.
Returns:
-------
KML object: The parsed KML object.
"""
try:
tree = config.etree.parse(
Expand Down

0 comments on commit 7ad8850

Please sign in to comment.