diff --git a/rich/pretty.py b/rich/pretty.py index a1a36e33..f64ef95f 100644 --- a/rich/pretty.py +++ b/rich/pretty.py @@ -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 [] diff --git a/rich/spinner.py b/rich/spinner.py index d4719c93..b3d9d9c0 100644 --- a/rich/spinner.py +++ b/rich/spinner.py @@ -17,7 +17,7 @@ class Spinner: text: "RenderableType" = "", *, style: Optional["StyleType"] = None, - speed=1.0, + speed: float = 1.0, ) -> None: """A spinner animation.