Skip to content

Commit 19a3711

Browse files
authored
Add example for broken-collections-callable (#6167)
1 parent b19ea92 commit 19a3711

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from collections.abc import Callable
2+
from typing import Optional
3+
4+
5+
def func() -> Optional[Callable[[int], None]]: # [broken-collections-callable]
6+
...
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from typing import Callable, Optional
2+
3+
4+
def func() -> Optional[Callable[[int], None]]:
5+
...
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[master]
2+
py-version=3.9
3+
load-plugins=pylint.extensions.typing
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- `bpo-42965 <https://bugs.python.org/issue42965>`_

0 commit comments

Comments
 (0)