Add repoze.lru stub file and cleanup cache.py typing - #74
henri-hulski wants to merge 2 commits into
Conversation
|
Another question. In from __future__ import annotations
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
_ValueT = TypeVar("_ValueT", default=Callable[..., Any])
else:
from typing import TypeVar
_ValueT = TypeVar("_ValueT")What does it actually do? |
|
We only can get away with deleting the second The only reason I didn't replace
The On the note of supported versions: Since Python 3.15 is on the verge of being released and Python 3.10 will be EOL at the end of October, we could change our supported versions to Python 3.11 - 3.15. This would at least let us get rid of the |
| python_version = "3.10" | ||
| strict = true | ||
| files = ["."] | ||
| mypy_path = "stubs" |
There was a problem hiding this comment.
| mypy_path = "stubs" | |
| mypy_path = "$MYPY_CONFIG_FILE_DIR/stubs" |
This is more reliable, otherwise mypy will only work correctly when called from the repository's root directory. But as pointed out above we're probably better off not having any third party stubs in a package with downstream dependencies and even better off, if we get rid of the repoze.lru dependency entirely.
|
I replaced |
@Daverball Can you take a look