fediverse-devnet / feditest

A testing framework for distributed, heterogeneous systems communicating with complex protocols, such as the Fediverse
https://feditest.org/
MIT License
31 stars 6 forks source link

TypeVar error #295

Closed jernst closed 1 month ago

jernst commented 1 month ago

mypy says:

src/feditest/__init__.py:179: error: String argument 1 "NodeDriver" to TypeVar(...) does not match variable name "TDriver"  [misc]
src/feditest/__init__.py:181: error: Variable "feditest.TDriver" is not valid as a type  [valid-type]
src/feditest/__init__.py:181: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
jernst commented 1 month ago

Assigning to the resident python expert :-)

steve-bate commented 1 month ago

Assigning to the resident python expert :-)

I've seen that too. It's a trivial change but doesn't cause any runtime issues (and VSCode doesn't seem to care) so I was waiting to submit a PR for it.