Skip to content

Commit 2811003

Browse files
Update additional functional tests
1 parent 8492003 commit 2811003

17 files changed

+35
-22
lines changed

tests/functional/ext/private_import/private_import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def c2_func() -> _TypeContainerC.C:
7979
# This is allowed since all the imports are used for typing
8080
from _TypeContainerExtra import TypeExtraA, TypeExtraB
8181
from MakerContainerExtra import GetA, GetB
82-
extraA: TypeExtraA = GetA()
83-
extraB: TypeExtraB = GetB()
82+
extra_a: TypeExtraA = GetA()
83+
extra_b: TypeExtraB = GetB()
8484

8585
# This is not allowed because there is an import not used for typing
8686
from _TypeContainerExtra2 import TypeExtra2, NotTypeExtra # [import-private-name]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[MAIN]
22
load-plugins=pylint.extensions.private_import,
3+
const-naming-style=snake_case

tests/functional/f/function_redefined.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def callback2():
122122
return 24
123123
return callback1(), callback2()
124124

125-
do_something: Callable[[], int]
125+
do_something: Callable[[], int] # pylint: disable=invalid-name
126126

127127
def do_something() -> int:
128128
return 1

tests/functional/g/generic_alias/generic_alias_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class CustomImplementation(CustomAbstractCls2): # [abstract-method,abstract-met
110110
# Type annotations
111111
var_tuple: tuple[int, int]
112112
var_dict: dict[int, str]
113-
var_orderedDict: collections.OrderedDict[int, str]
113+
var_ordereddict: collections.OrderedDict[int, str]
114114
var_container: collections.abc.Container[int]
115115
var_sequence: collections.abc.Sequence[int]
116116
var_iterable: collections.abc.Iterable[int]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[testoptions]
22
min_pyver=3.9
3+
4+
[MAIN]
5+
const-naming-style=snake_case
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[testoptions]
22
max_pyver=3.9
3+
4+
[MAIN]
5+
const-naming-style=snake_case
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[testoptions]
22
max_pyver=3.9
3+
4+
[MAIN]
5+
const-naming-style=snake_case

tests/functional/g/generic_alias/generic_alias_mixed_py39.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import typing
1010

1111
# Type annotations
12-
var_orderedDict: collections.OrderedDict[int, str]
12+
var_ordered_dict: collections.OrderedDict[int, str]
1313
var_container: collections.abc.Container[int]
1414
var_sequence: collections.abc.Sequence[int]
1515
var_iterable: collections.abc.Iterable[int]
1616
var_awaitable: collections.abc.Awaitable[int]
1717
var_pattern: re.Pattern[int]
1818
var_bytestring: collections.abc.ByteString
1919
var_hashable: collections.abc.Hashable
20-
var_ContextManager: contextlib.AbstractContextManager[int]
20+
var_context_manager: contextlib.AbstractContextManager[int]
2121

2222

2323
# No implementation required for 'builtins'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[testoptions]
22
min_pyver=3.9
3+
4+
[MAIN]
5+
const-naming-style=snake_case

tests/functional/r/regression_02/regression_3979.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
else:
1111
BasePathLike = os.PathLike
1212

13-
Foo: Union[str, BasePathLike] = "bar"
13+
SOME_VAR: Union[str, BasePathLike] = "bar"

0 commit comments

Comments
 (0)