Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into fix-protocols
  • Loading branch information
97littleleaf11 authored Mar 16, 2022
commit 82d20b6d02aa6be008c491fc5f227041b1670afb
7 changes: 5 additions & 2 deletions test-data/unit/stubgen.test
Original file line number Diff line number Diff line change
Expand Up @@ -2581,7 +2581,6 @@ def f(x: int, y: int) -> int: ...
@t.overload
def f(x: t.Tuple[int, int]) -> int: ...


[case testProtocol_semanal]
from typing import Protocol, TypeVar

Expand All @@ -2595,7 +2594,6 @@ class PT(Protocol[T, T2]):
def f(self, x: T) -> T2:
...


[out]
from typing import Protocol, TypeVar

Expand All @@ -2606,3 +2604,8 @@ T2 = TypeVar('T2')

class PT(Protocol[T, T2]):
def f(self, x: T) -> T2: ...

[case testNonDefaultKeywordOnlyArgAfterAsterisk]
def func(*, non_default_kwarg: bool, default_kwarg: bool = True): ...
[out]
def func(*, non_default_kwarg: bool, default_kwarg: bool = ...): ...
You are viewing a condensed version of this merge commit. You can view the full changes here.