new version of pyright is suddenly emitting an
error that makes no sense for a particular line of code,
breaking builds. As we already have mypy which is generally
more conservative in its checking, disable pyright from CI
for now until it changes its behaviors less often.
Change-Id: I862de1b2c8a180df95c74c1c6dafa96d86c36ef1
capacity: int
threshold: float
- size_alert: Callable[["LRUCache[_KT, _VT]"], None]
+ size_alert: Optional[Callable[["LRUCache[_KT, _VT]"], None]]
def __init__(self, capacity=100, threshold=0.5, size_alert=None):
self.capacity = capacity
greenlet != 0.4.17
importlib_metadata; python_version < '3.8'
mypy
- pyright
+ # pyright
commands =
mypy ./lib/sqlalchemy
- pyright
+ # pyright changes too often with not-exactly-correct errors
+ # suddently appearing for it to be stable enough for CI
+ # pyright
[testenv:mypy]
deps=