mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
is_lazy_fixture in pytest-lazy-fixture is a TypeIs function (#12285)
This commit is contained in:
@@ -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