forked from mitmproxy/pdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
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
dae19f2
commit 283b88d
Showing
5 changed files
with
50 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
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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
"""Test that we remove 'collections.abc' from type signatures.""" | ||
from collections.abc import Awaitable, Container | ||
|
||
from collections.abc import Awaitable | ||
from collections.abc import Container | ||
|
||
|
||
def func(bar: Awaitable[None]) -> Awaitable[None]: | ||
return bar | ||
|
||
def func( | ||
bar: Awaitable[None] | ||
) -> Awaitable[None]: | ||
return bar | ||
|
||
class Class(Container[str]): | ||
""" | ||
For subclasses, we currently display the full classname. | ||
Mostly because it's easier, but it also makes a bit more sense here. | ||
""" | ||
def __contains__(self, item): | ||
return item == "Bar" | ||
""" | ||
For subclasses, we currently display the full classname. | ||
Mostly because it's easier, but it also makes a bit more sense here. | ||
""" | ||
|
||
def __contains__(self, item): | ||
return item == "Bar" | ||
|
||
|
||
var: Container[str] = "baz" |
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