doc(layer): _get_caster docstring

This commit is contained in:
Benjamin Kirkbride
2020-06-07 20:31:30 -04:00
parent 77d42246a9
commit 40616a78fd

View File

@@ -224,6 +224,14 @@ def _cast_group_layer(raw_layer: RawLayer) -> LayerGroup:
def _get_caster(type_: str) -> Callable[[RawLayer], Layer]:
""" Get the caster function for the raw layer.
Args:
type_: the type of the layer
Returns:
Callable[[RawLayer], Layer]: The caster function.
"""
casters = {
"tilelayer": _cast_tile_layer,
"objectgroup": _cast_object_layer,