You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stubgen: fix handling of Protocol and add testcase (#12129)
### Description
This PR fixes#12072 by correctly handling `Protocol` definitions. Previously, the `Protocol` base class was removed when generating type stubs which causes problems with other packages that want to use type definition (because they see it as a regular class, not as a `Protocol`).
## Test Plan
Added a testcase to the stubgen testset.
Co-authored-by: 97littleleaf11 <[email protected]>
0 commit comments