diff --git a/altair/utils/schemapi.py b/altair/utils/schemapi.py index 82611aae5..8f71247da 100644 --- a/altair/utils/schemapi.py +++ b/altair/utils/schemapi.py @@ -762,7 +762,7 @@ def func_1( ] = Undefined, ): ... -This is distinct from `typing.Optional `__, as ``altair.Optional`` treats ``None`` like any other type:: +This is distinct from `typing.Optional `__ as ``altair.Optional`` treats ``None`` like any other type:: # ruff: noqa: UP006, UP007 from altair import Optional diff --git a/tools/schemapi/schemapi.py b/tools/schemapi/schemapi.py index e90dcfb60..b8bbe34c2 100644 --- a/tools/schemapi/schemapi.py +++ b/tools/schemapi/schemapi.py @@ -760,7 +760,7 @@ def func_1( ] = Undefined, ): ... -This is distinct from `typing.Optional `__, as ``altair.Optional`` treats ``None`` like any other type:: +This is distinct from `typing.Optional `__ as ``altair.Optional`` treats ``None`` like any other type:: # ruff: noqa: UP006, UP007 from altair import Optional