-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
1 parent
fbb738a
commit 1e56aa4
Showing
8 changed files
with
160 additions
and
32 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
16 changes: 16 additions & 0 deletions
16
test-data/pybind11_mypy_demo/expected_stubs_no_docs/pybind11_mypy_demo/__init__.pyi
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,16 @@ | ||
import os | ||
from . import demo as demo | ||
from typing import List, Optional, Tuple | ||
|
||
class TestStruct: | ||
field_readwrite: int | ||
field_readwrite_docstring: int | ||
def __init__(self, *args, **kwargs) -> None: ... | ||
@property | ||
def field_readonly(self) -> int: ... | ||
|
||
def func_incomplete_signature(*args, **kwargs): ... | ||
def func_returning_optional() -> Optional[int]: ... | ||
def func_returning_pair() -> Tuple[int, float]: ... | ||
def func_returning_path() -> os.PathLike: ... | ||
def func_returning_vector() -> List[float]: ... |
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
test-data/pybind11_mypy_demo/expected_stubs_with_docs/pybind11_mypy_demo/__init__.pyi
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,22 @@ | ||
import os | ||
from . import demo as demo | ||
from typing import List, Optional, Tuple | ||
|
||
class TestStruct: | ||
field_readwrite: int | ||
field_readwrite_docstring: int | ||
def __init__(self, *args, **kwargs) -> None: | ||
"""Initialize self. See help(type(self)) for accurate signature.""" | ||
@property | ||
def field_readonly(self) -> int: ... | ||
|
||
def func_incomplete_signature(*args, **kwargs): | ||
"""func_incomplete_signature() -> dummy_sub_namespace::HasNoBinding""" | ||
def func_returning_optional() -> Optional[int]: | ||
"""func_returning_optional() -> Optional[int]""" | ||
def func_returning_pair() -> Tuple[int, float]: | ||
"""func_returning_pair() -> Tuple[int, float]""" | ||
def func_returning_path() -> os.PathLike: | ||
"""func_returning_path() -> os.PathLike""" | ||
def func_returning_vector() -> List[float]: | ||
"""func_returning_vector() -> List[float]""" |
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
1 change: 0 additions & 1 deletion
1
test-data/pybind11_mypy_demo/stubgen-include-docs/pybind11_mypy_demo/__init__.pyi
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test-data/pybind11_mypy_demo/stubgen/pybind11_mypy_demo/__init__.pyi
This file was deleted.
Oops, something went wrong.