Skip to content

Commit

Permalink
#216 add default values for features
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 5, 2024
1 parent c733635 commit 1f75afa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion fastkml/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def __repr__(self) -> str:
classes=(bool,),
get_kwarg=subelement_bool_kwarg,
set_element=bool_subelement,
default=True,
),
)
registry.register(
Expand All @@ -364,6 +365,7 @@ def __repr__(self) -> str:
classes=(bool,),
get_kwarg=subelement_bool_kwarg,
set_element=bool_subelement,
default=False,
),
)
registry.register(
Expand Down Expand Up @@ -745,7 +747,7 @@ class NetworkLink(_Feature):
For example, Google Earth would fly to the <LookAt> view of the parent Document,
not the <LookAt> of the Placemarks contained within the Document.
<Link>(required)
https://developers.google.com/kml/documentation/kmlreference#link
https://developers.google.com/kml/documentation/kmlreference#networklink
"""

refresh_visibility: Optional[bool]
Expand Down Expand Up @@ -921,6 +923,7 @@ def __bool__(self) -> bool:
classes=(bool,),
get_kwarg=subelement_bool_kwarg,
set_element=bool_subelement,
default=False,
),
)
registry.register(
Expand All @@ -932,6 +935,7 @@ def __bool__(self) -> bool:
classes=(bool,),
get_kwarg=subelement_bool_kwarg,
set_element=bool_subelement,
default=False,
),
)
registry.register(
Expand Down
2 changes: 1 addition & 1 deletion tests/geometries/geometry_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2021 - 2023 Christian Ledermann
# Copyright (C) 2021 - 2024 Christian Ledermann
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
Expand Down

0 comments on commit 1f75afa

Please sign in to comment.