Skip to content

Commit b9f0c7d

Browse files
committed
Stubtest: Ignore attrs-generated props
Closes: #14844
1 parent 79bb399 commit b9f0c7d

File tree

2 files changed

+7
-54
lines changed

2 files changed

+7
-54
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 & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,70 +6,27 @@ 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__
34-
jsonschema.RefResolutionError.__match_args__
35-
jsonschema.TypeChecker.__attrs_attrs__
3619
jsonschema.TypeChecker.__match_args__
37-
jsonschema._types.TypeChecker.__attrs_attrs__
3820
jsonschema._types.TypeChecker.__match_args__
39-
jsonschema.cli._Outputter.__attrs_attrs__
40-
jsonschema.cli._Outputter.__attrs_own_setattr__
4121
jsonschema.cli._Outputter.__match_args__
42-
jsonschema.cli._PlainFormatter.__attrs_attrs__
43-
jsonschema.cli._PlainFormatter.__attrs_own_setattr__
4422
jsonschema.cli._PlainFormatter.__match_args__
45-
jsonschema.cli._PrettyFormatter.__attrs_attrs__
46-
jsonschema.cli._PrettyFormatter.__attrs_own_setattr__
4723
jsonschema.cli._PrettyFormatter.__match_args__
48-
jsonschema.exceptions.RefResolutionError.__attrs_attrs__
4924
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__
5325
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__
5726
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__
6127
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__
6528
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__
6929
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__
7330
jsonschema.validators.Draft7Validator.__match_args__
7431
# >= Python 3.13
7532
jsonschema.Draft201909Validator.__replace__

0 commit comments

Comments
 (0)