Skip to content

Commit a02656a

Browse files
authored
Stubtest: Ignore attrs-generated props (#14845)
1 parent dfaf10d commit a02656a

File tree

2 files changed

+7
-53
lines changed

2 files changed

+7
-53
lines changed

stubs/flake8-bugbear/@tests/stubtest_allowlist.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
# Autogenerated methods using @attr.* decorators
2-
bugbear.B040CaughtException.__attrs_attrs__
3-
bugbear.B040CaughtException.__attrs_own_setattr__
2+
.*\.__attrs_attrs__
3+
.*\.__attrs_own_setattr__
4+
.*\.__attrs_props__
45
bugbear.B040CaughtException.__match_args__
5-
bugbear.B041VariableKeyType.__attrs_attrs__
66
bugbear.B041VariableKeyType.__match_args__
7-
bugbear.BugBearChecker.__attrs_attrs__
87
bugbear.BugBearChecker.__ge__
98
bugbear.BugBearChecker.__gt__
109
bugbear.BugBearChecker.__le__
1110
bugbear.BugBearChecker.__lt__
1211
bugbear.BugBearChecker.__match_args__
13-
bugbear.BugBearVisitor.__attrs_attrs__
1412
bugbear.BugBearVisitor.__ge__
1513
bugbear.BugBearVisitor.__gt__
1614
bugbear.BugBearVisitor.__le__
1715
bugbear.BugBearVisitor.__lt__
1816
bugbear.BugBearVisitor.__match_args__
19-
bugbear.NameFinder.__attrs_attrs__
2017
bugbear.NameFinder.__ge__
2118
bugbear.NameFinder.__gt__
2219
bugbear.NameFinder.__le__
2320
bugbear.NameFinder.__lt__
2421
bugbear.NameFinder.__match_args__
25-
bugbear.NamedExprFinder.__attrs_attrs__
2622
bugbear.NamedExprFinder.__ge__
2723
bugbear.NamedExprFinder.__gt__
2824
bugbear.NamedExprFinder.__le__

stubs/jsonschema/@tests/stubtest_allowlist.txt

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,70 +6,28 @@ jsonschema.benchmarks.*
66
jsonschema.__main__
77

88
# Autogenerated methods using @attr.* decorators:
9-
jsonschema.Draft201909Validator.__attrs_attrs__
10-
jsonschema.Draft201909Validator.__attrs_own_setattr__
11-
jsonschema.Draft201909Validator.__attrs_post_init__
9+
.*\.__attrs_attrs__
10+
.*\.__attrs_own_setattr__
11+
.*\.__attrs_post_init__
12+
.*\.__attrs_props__
1213
jsonschema.Draft201909Validator.__match_args__
13-
jsonschema.Draft202012Validator.__attrs_attrs__
14-
jsonschema.Draft202012Validator.__attrs_own_setattr__
15-
jsonschema.Draft202012Validator.__attrs_post_init__
1614
jsonschema.Draft202012Validator.__match_args__
17-
jsonschema.Draft3Validator.__attrs_attrs__
18-
jsonschema.Draft3Validator.__attrs_own_setattr__
19-
jsonschema.Draft3Validator.__attrs_post_init__
2015
jsonschema.Draft3Validator.__match_args__
21-
jsonschema.Draft4Validator.__attrs_attrs__
22-
jsonschema.Draft4Validator.__attrs_own_setattr__
23-
jsonschema.Draft4Validator.__attrs_post_init__
2416
jsonschema.Draft4Validator.__match_args__
25-
jsonschema.Draft6Validator.__attrs_attrs__
26-
jsonschema.Draft6Validator.__attrs_own_setattr__
27-
jsonschema.Draft6Validator.__attrs_post_init__
2817
jsonschema.Draft6Validator.__match_args__
29-
jsonschema.Draft7Validator.__attrs_attrs__
30-
jsonschema.Draft7Validator.__attrs_own_setattr__
31-
jsonschema.Draft7Validator.__attrs_post_init__
3218
jsonschema.Draft7Validator.__match_args__
33-
jsonschema.RefResolutionError.__attrs_attrs__
3419
jsonschema.RefResolutionError.__match_args__
35-
jsonschema.TypeChecker.__attrs_attrs__
3620
jsonschema.TypeChecker.__match_args__
37-
jsonschema._types.TypeChecker.__attrs_attrs__
3821
jsonschema._types.TypeChecker.__match_args__
39-
jsonschema.cli._Outputter.__attrs_attrs__
40-
jsonschema.cli._Outputter.__attrs_own_setattr__
4122
jsonschema.cli._Outputter.__match_args__
42-
jsonschema.cli._PlainFormatter.__attrs_attrs__
43-
jsonschema.cli._PlainFormatter.__attrs_own_setattr__
4423
jsonschema.cli._PlainFormatter.__match_args__
45-
jsonschema.cli._PrettyFormatter.__attrs_attrs__
46-
jsonschema.cli._PrettyFormatter.__attrs_own_setattr__
4724
jsonschema.cli._PrettyFormatter.__match_args__
48-
jsonschema.exceptions.RefResolutionError.__attrs_attrs__
4925
jsonschema.exceptions.RefResolutionError.__match_args__
50-
jsonschema.validators.Draft201909Validator.__attrs_attrs__
51-
jsonschema.validators.Draft201909Validator.__attrs_own_setattr__
52-
jsonschema.validators.Draft201909Validator.__attrs_post_init__
5326
jsonschema.validators.Draft201909Validator.__match_args__
54-
jsonschema.validators.Draft202012Validator.__attrs_attrs__
55-
jsonschema.validators.Draft202012Validator.__attrs_own_setattr__
56-
jsonschema.validators.Draft202012Validator.__attrs_post_init__
5727
jsonschema.validators.Draft202012Validator.__match_args__
58-
jsonschema.validators.Draft3Validator.__attrs_attrs__
59-
jsonschema.validators.Draft3Validator.__attrs_own_setattr__
60-
jsonschema.validators.Draft3Validator.__attrs_post_init__
6128
jsonschema.validators.Draft3Validator.__match_args__
62-
jsonschema.validators.Draft4Validator.__attrs_attrs__
63-
jsonschema.validators.Draft4Validator.__attrs_own_setattr__
64-
jsonschema.validators.Draft4Validator.__attrs_post_init__
6529
jsonschema.validators.Draft4Validator.__match_args__
66-
jsonschema.validators.Draft6Validator.__attrs_attrs__
67-
jsonschema.validators.Draft6Validator.__attrs_own_setattr__
68-
jsonschema.validators.Draft6Validator.__attrs_post_init__
6930
jsonschema.validators.Draft6Validator.__match_args__
70-
jsonschema.validators.Draft7Validator.__attrs_attrs__
71-
jsonschema.validators.Draft7Validator.__attrs_own_setattr__
72-
jsonschema.validators.Draft7Validator.__attrs_post_init__
7331
jsonschema.validators.Draft7Validator.__match_args__
7432
# >= Python 3.13
7533
jsonschema.Draft201909Validator.__replace__

0 commit comments

Comments
 (0)