Skip to content

Commit

Permalink
tests: use TypeAlias for Fixtures instead of subclass
Browse files Browse the repository at this point in the history
I don't remember why I did it that way in the first place.
  • Loading branch information
enku committed Jul 26, 2024
1 parent 32fe878 commit 7790551
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
now = partial(dt.datetime.now, tz=dt.UTC)


class Fixtures(SimpleNamespace):
pass


Fixtures: TypeAlias = SimpleNamespace
FixtureOptions: TypeAlias = dict[str, Any]
FixtureContext: TypeAlias = Iterator
FixtureFunction: TypeAlias = Callable[[FixtureOptions, Fixtures], Any]
Expand Down

0 comments on commit 7790551

Please sign in to comment.