Skip to content

Commit

Permalink
move generic so _liveSignature can work, for test coverage
Browse files Browse the repository at this point in the history
This commit was sponsored by Derek Veit, Jason Mills, Devin Prater,
and my other patrons.  If you want to join them, you can support my
work at https://glyph.im/patrons/.
  • Loading branch information
glyph committed Aug 15, 2024
1 parent 76aeee4 commit ae78fe7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions automat/_test/test_type_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class NoOpCore:
"Just an object, you know?"


@dataclass
class Gen(Generic[T]):
t: T


def buildTestBuilder() -> (
tuple[
TypeMachineBuilder[TestProtocol, NoOpCore], Callable[[NoOpCore], TestProtocol]
Expand Down Expand Up @@ -437,10 +442,6 @@ def test_genericData(self) -> None:
builder = TypeMachineBuilder(ArgTaker, NoOpCore)
one = builder.state("one")

@dataclass
class Gen(Generic[T]):
t: T

def dat(
proto: ArgTaker, core: NoOpCore, arg1: int = 0, arg2: str = ""
) -> Gen[int]:
Expand Down

0 comments on commit ae78fe7

Please sign in to comment.