Skip to content

Commit

Permalink
Self check
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdanal committed Jul 8, 2023
1 parent bd09d51 commit f6c74a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,10 +1214,10 @@ def test(arg0: str) -> None:
assert_equal(set(imports), {"import foo", "import other"})

def test_generate_c_function_no_crash_for_non_str_docstring(self) -> None:
def test(arg0):
def test(arg0: str) -> None:
...

test.__doc__ = property(lambda self: "test(arg0: str) -> None")
test.__doc__ = property(lambda self: "test(arg0: str) -> None") # type: ignore[assignment]

output: list[str] = []
imports: list[str] = []
Expand Down

0 comments on commit f6c74a5

Please sign in to comment.