fix changes in upstream master

This commit is contained in:
Nathan Page 2021-05-09 14:48:57 -07:00
parent c7662c9a6c
commit d93e79f94d
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ def _is_attr_object(obj: Any) -> bool:
return _attr_module is not None and _attr_module.has(type(obj))
def _get_attr_fields(obj: Any) -> Iterable["_attr_module.Attribute"]:
def _get_attr_fields(obj: Any) -> Iterable["_attr_module.Attribute[Any]"]:
"""Get fields for an attrs object."""
return _attr_module.fields(type(obj)) if _attr_module is not None else []

View File

@ -17,7 +17,7 @@ class Spinner:
text: "RenderableType" = "",
*,
style: Optional["StyleType"] = None,
speed=1.0,
speed: float = 1.0,
) -> None:
"""A spinner animation.