python-trio / trio-typing

Type hints for Trio and related projects
Other
27 stars 13 forks source link

trio-stubs runtime error (mypy >= 1.4.0) #87

Closed belm0 closed 11 months ago

belm0 commented 11 months ago
/.../lib/python3.8/site-packages/trio-stubs/__init__.pyi:129: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 1.4.1
Traceback (most recent call last):
  File "mypy/checker.py", line 582, in accept
  File "mypy/nodes.py", line 896, in accept
  File "mypy/checker.py", line 4721, in visit_decorator
  File "mypy/checkexpr.py", line 1291, in check_call
  File "mypy/checkexpr.py", line 1501, in check_callable_call
  File "mypy/checkexpr.py", line 1031, in apply_function_plugin
  File "/.../lib/python3.8/site-packages/trio_typing/plugin.py", line 496, in takes_callable_and_args_callback
    TypeVarType(
TypeError: __init__() missing required argument 'default' (pos 6)
belm0 commented 11 months ago

it seems to be fixed in trio-typing master-- need a release

TeamSpen210 commented 11 months ago

This is a duplicate of #84. Indeed we need a release though.