-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
171 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
171 changes: 104 additions & 67 deletions
171
test/testdata/type_stub.html → test/testdata/type_stubs.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<module type_stubs # This module has an a… | ||
<function def func(x: str, y: Any, z: Iterable[str]) -> int: ... # A simple function.> | ||
<var var: list[str] = [] # Docstring override f…> | ||
<class type_stubs.Class | ||
<method def __init__(): ...> | ||
<var attr: int = 42 # An attribute> | ||
<method def meth(self, y: bool) -> bool: ... # A simple method.> | ||
<class type_stubs.Class.Subclass | ||
<method def __init__(): ...> | ||
<var attr: str = '42' # An attribute> | ||
<method def meth(self, y: bool) -> bool: ... # A simple method.> | ||
> | ||
<method def no_type_annotation(self, z): ... # A method not present…> | ||
<method def overloaded(*args, **kwds): ... # An overloaded method…> | ||
> | ||
<class type_stubs.ImportedClass # inherited from type_stubs._utils.ImportedClass, Docstring from impor… | ||
<method def __init__(): ... # inherited from type_stubs._utils.ImportedClass.__init__> | ||
> | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class ImportedClass: | ||
"""Docstring from imported py file - ideally this should be overridden.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class ImportedClass: | ||
"""Docstring from imported pyi file""" |