mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
is_lazy_fixture in pytest-lazy-fixture is a TypeIs function (#12285)
This commit is contained in:
1 parent
0fc33ace47
commit
99c1b7102a
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
||||
from collections.abc import Iterable
|
||||
from typing import Any, overload
|
||||
from typing_extensions import TypeGuard
|
||||
from typing_extensions import TypeIs
|
||||
|
||||
class LazyFixture:
|
||||
name: str
|
||||
@@ -11,4 +11,4 @@ class LazyFixture:
|
||||
def lazy_fixture(names: str) -> LazyFixture: ...
|
||||
@overload
|
||||
def lazy_fixture(names: Iterable[str]) -> list[LazyFixture] | Any: ...
|
||||
def is_lazy_fixture(val: object) -> TypeGuard[LazyFixture]: ...
|
||||
def is_lazy_fixture(val: object) -> TypeIs[LazyFixture]: ...
|
||||
Reference in new issue
Block a user