general: small updates for typing while trying out pyright

This commit is contained in:
Dima Gerasimov 2024-08-27 21:02:39 +01:00 committed by karlicoss
parent b1fe23b8d0
commit c08ddbc781
7 changed files with 12 additions and 14 deletions

View file

@ -133,8 +133,8 @@ def test_classproperty() -> None:
return 'hello'
res = C.prop
assert res == 'hello'
assert_type(res, str)
assert res == 'hello'
# hmm, this doesn't really work with mypy well..