mirror of https://github.com/Textualize/rich.git
fix changes in upstream master
This commit is contained in:
parent
c7662c9a6c
commit
d93e79f94d
|
@ -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 []
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class Spinner:
|
|||
text: "RenderableType" = "",
|
||||
*,
|
||||
style: Optional["StyleType"] = None,
|
||||
speed=1.0,
|
||||
speed: float = 1.0,
|
||||
) -> None:
|
||||
"""A spinner animation.
|
||||
|
||||
|
|
Loading…
Reference in New Issue