Skip to content

Commit

Permalink
Verbosity is always passed
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 5, 2024
1 parent b1165ff commit 69a4c7b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions fastkml/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +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#networklink
"""

Expand Down
26 changes: 13 additions & 13 deletions fastkml/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_value(
obj: _XMLObject,
*,
attr_name: str,
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[Any],
) -> Optional[Any]:
"""
Expand Down Expand Up @@ -116,7 +116,7 @@ def node_text(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[str],
) -> None:
"""
Expand Down Expand Up @@ -161,7 +161,7 @@ def text_subelement(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[str],
) -> None:
"""
Expand Down Expand Up @@ -202,7 +202,7 @@ def text_attribute(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[str],
) -> None:
"""
Expand Down Expand Up @@ -239,7 +239,7 @@ def bool_subelement(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[bool],
) -> None:
"""
Expand Down Expand Up @@ -276,7 +276,7 @@ def int_subelement(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[int],
) -> None:
"""
Expand Down Expand Up @@ -313,7 +313,7 @@ def int_attribute(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[int],
) -> None:
"""
Expand Down Expand Up @@ -346,7 +346,7 @@ def float_subelement(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[float],
) -> None:
"""Set the value of an attribute from a subelement with a text node."""
Expand All @@ -366,7 +366,7 @@ def float_attribute(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[float],
) -> None:
"""Set the value of an attribute."""
Expand All @@ -382,7 +382,7 @@ def enum_subelement(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[Enum],
) -> None:
"""Set the value of an attribute from a subelement with a text node."""
Expand All @@ -402,7 +402,7 @@ def enum_attribute(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[Enum],
) -> None:
"""Set the value of an attribute."""
Expand All @@ -418,7 +418,7 @@ def xml_subelement(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[_XMLObject],
) -> None:
"""
Expand Down Expand Up @@ -455,7 +455,7 @@ def xml_subelement_list(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Optional[List[_XMLObject]],
) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion fastkml/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __call__(
attr_name: str,
node_name: str,
precision: Optional[int],
verbosity: Optional[Verbosity],
verbosity: Verbosity,
default: Any,
) -> None: ...

Expand Down

0 comments on commit 69a4c7b

Please sign in to comment.