-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
If code has annotations, it would be nice if stubgen would preserve them instead of filtering them out. Example (input -> output):
from mod import Thing
import mod2
def f(x: Thing) -> int:
mod2.do_stuff()
# more implementation
->
from mod import Thing
def f(x: Thing) -> int: ...
Maybe we should also (optionally) run type inference so that we could output inferred types for module-level variables and attributes.
See also discussion in #1899.
Metadata
Metadata
Assignees
Labels
No labels