@@ -42,7 +42,7 @@ class Base[T]:
4242
4343 fin : typing .Final [int ]
4444
45- def foo (self , a : T | None , b : int = 0 ) -> dict [str , T ]:
45+ def foo (self , a : T | None , * , b : int = 0 ) -> dict [str , T ]:
4646 pass
4747
4848 def base [Z ](self , a : T | Z | None , b : K ) -> dict [str , T | Z ]:
@@ -166,7 +166,7 @@ class Final:
166166 fin: typing.Final[int]
167167 x: tests.test_type_dir.Wrapper[int | None]
168168 ordinary: str
169- def foo(self, a: int | None, b: int = 0) -> dict[str, int]: ...
169+ def foo(self, a: int | None, *, b: int = 0) -> dict[str, int]: ...
170170 def base[Z](self, a: int | Z | None, b: ~K) -> dict[str, int | Z]: ...
171171 def cbase(cls, a: int | None, b: ~K) -> dict[str, int]: ...
172172 def sbase[Z](cls, a: int | Literal['gotcha!'] | Z | None, b: ~K) -> dict[str, int | Z]: ...
@@ -260,7 +260,8 @@ def test_type_dir_7():
260260 typing.Callable[[\
261261 typemap.typing.Param[typing.Literal['self'], typing.Any, typing.Never], \
262262 typemap.typing.Param[typing.Literal['a'], int | None, typing.Never], \
263- typemap.typing.Param[typing.Literal['b'], int, typing.Literal['=']]], \
263+ typemap.typing.Param[typing.Literal['b'], int, typing.Literal['keyword', \
264+ 'default']]], \
264265 dict[str, int]], typing.Literal['ClassVar'], tests.test_type_dir.Final]"
265266 )
266267
0 commit comments