-
Notifications
You must be signed in to change notification settings - Fork 80
/
stubtest_allowlist.txt
144 lines (136 loc) · 5.95 KB
/
stubtest_allowlist.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Generated pb2 __init__ methods diverge because the runtime
# has *args, **kwargs - and we're trying to do better
testproto\..*_pb2\..*\.__init__$
# stubtest is confused by these edge cases
testproto.test_pb2.PythonReservedKeywords.*
testproto.test_pb2.None
# Enum variants - stubtest doesn't like int varying from a NewType
testproto.test_pb2.FOO
testproto.test_pb2.BAR
testproto.test_pb2.Simple1.INNER1
testproto.test_pb2.Simple1.INNER2
testproto.test_pb2.Name
testproto.test_pb2.Value
testproto.test_pb2.items
testproto.test_pb2.keys
testproto.test_pb2.values
testproto.test3_pb2.SimpleProto3.INNER1
testproto.test3_pb2.SimpleProto3.INNER2
testproto.reexport_pb2.SimpleProto3.INNER1
testproto.reexport_pb2.SimpleProto3.INNER2
testproto.reexport_pb2.UNKNOWN
testproto.reexport_pb2.FOO3
testproto.reexport_pb2.BAR3
testproto.test3_pb2.UNKNOWN
testproto.test3_pb2.FOO3
testproto.test3_pb2.BAR3
testproto.nested.nested_pb2.AnotherNested.ONE
testproto.nested.nested_pb2.AnotherNested.TWO
testproto.readme_enum_pb2.HELLO
testproto.readme_enum_pb2.WORLD
testproto.nested.nested_pb2.AnotherNested.NestedMessage.UNDEFINED
testproto.nested.nested_pb2.AnotherNested.NestedMessage.NESTED_ENUM1
testproto.nested.nested_pb2.AnotherNested.NestedMessage.NESTED_ENUM2
testproto.nested.nested_pb2.AnotherNested.INVALID
# Our enum types and helper types aren't there at runtime (Dynamic EnumTypeWrapper at runtime)
# .*\..*EnumTypeWrapper$
testproto.test_pb2.Simple1._?InnerEnum(EnumTypeWrapper)?
testproto.test_pb2._?OuterEnum(EnumTypeWrapper)?
testproto.test_pb2._?NamingConflicts(EnumTypeWrapper)?
testproto.test3_pb2.SimpleProto3._?InnerEnum(EnumTypeWrapper)?
testproto.test3_pb2._?OuterEnum(EnumTypeWrapper)?
testproto.reexport_pb2.SimpleProto3._?InnerEnum(EnumTypeWrapper)?
testproto.reexport_pb2._?OuterEnum(EnumTypeWrapper)?
testproto.readme_enum_pb2._?MyEnum(EnumTypeWrapper)?
testproto.nested.nested_pb2.AnotherNested._?NestedEnum(EnumTypeWrapper)?
testproto.nested.nested_pb2.AnotherNested.NestedMessage._?NestedEnum2(EnumTypeWrapper)?
# Our fake async stubs are not there at runtime (yet)
testproto.grpc.dummy_pb2_grpc.DummyServiceAsyncStub
testproto.grpc.import_pb2_grpc.SimpleServiceAsyncStub
# Part of an "EXPERIMENTAL API" according to comment. Not documented.
testproto.grpc.dummy_pb2_grpc.DummyService
testproto.grpc.import_pb2_grpc.SimpleService
# global prefix globals are generated, but aren't used at runtime
# using `__` would be preferable, but Y047 will detect unused names.
.*_pb2\.Global___.*
# All readonly generated @property fields seem to trip up
# stubtest. It claims they aren't available at runtime, when practically,
# they actually are.
# Eg:
# error: testproto.test_pb2.Simple1.rep_inner_message is not present at runtime
#
testproto.Capitalized.Capitalized_pb2.Upper.Lower
testproto.Capitalized.Capitalized_pb2.lower2.upper
testproto.nopackage_pb2.NoPackage2.np
testproto.nopackage_pb2.NoPackage2.np_rep
testproto.reexport_pb2.SimpleProto3.MapMessageEntry.value
testproto.reexport_pb2.SimpleProto3.OuterMessage3
testproto.reexport_pb2.SimpleProto3.a_repeated_string
testproto.reexport_pb2.SimpleProto3.bool
testproto.reexport_pb2.SimpleProto3.email_by_uid
testproto.reexport_pb2.SimpleProto3.map_message
testproto.reexport_pb2.SimpleProto3.map_scalar
testproto.reexport_pb2.SimpleProto3.outer_message
testproto.reexport_pb2.SimpleProto3.outer_message_in_oneof
testproto.test3_pb2.SimpleProto3.MapMessageEntry.value
testproto.test3_pb2.SimpleProto3.OuterMessage3
testproto.test3_pb2.SimpleProto3.a_repeated_string
testproto.test3_pb2.SimpleProto3.bool
testproto.test3_pb2.SimpleProto3.email_by_uid
testproto.test3_pb2.SimpleProto3.map_message
testproto.test3_pb2.SimpleProto3.map_scalar
testproto.test3_pb2.SimpleProto3.outer_message
testproto.test3_pb2.SimpleProto3.outer_message_in_oneof
testproto.test_pb2.Simple1.a_inner
testproto.test_pb2.Simple1.a_nested
testproto.test_pb2.Simple1.a_repeated_string
testproto.test_pb2.Simple1.email_by_uid
testproto.test_pb2.Simple1.inner_message
testproto.test_pb2.Simple1.nested_message
testproto.test_pb2.Simple1.no_package
testproto.test_pb2.Simple1.outer_message_in_oneof
testproto.test_pb2.Simple1.rep_inner_enum
testproto.test_pb2.Simple1.rep_inner_message
# All messages now fail with something like this:
# error: testproto.nested.nested_pb2.Nested is inconsistent, metaclass differs
# Stub: at line 55 in file test/generated/testproto/nested/nested_pb2.pyi
# N/A
# Runtime: in file /Users/nipunn/src/mypy-protobuf/test/generated/testproto/nested/nested_pb2.py
# <class 'google._upb._message.MessageMeta'>
#
# For now, just allow all these errors until we come up with better silencing mechanisms or
# alternately, better stubs for google._upb
testproto.Capitalized.Capitalized_pb2.Upper
testproto.Capitalized.Capitalized_pb2.lower
testproto.Capitalized.Capitalized_pb2.lower2
testproto.comment_special_chars_pb2.Test
testproto.dot.com.test_pb2.TestMessage
testproto.grpc.dummy_pb2.DummyReply
testproto.grpc.dummy_pb2.DummyRequest
testproto.inner.inner_pb2.Inner
testproto.nested.nested_pb2.AnotherNested
testproto.nested.nested_pb2.AnotherNested.NestedMessage
testproto.nested.nested_pb2.Nested
testproto.nopackage_pb2.NoPackage
testproto.nopackage_pb2.NoPackage2
testproto.reexport_pb2.Empty
testproto.reexport_pb2.OuterMessage3
testproto.reexport_pb2.SimpleProto3
testproto.reexport_pb2.SimpleProto3.EmailByUidEntry
testproto.reexport_pb2.SimpleProto3.MapMessageEntry
testproto.reexport_pb2.SimpleProto3.MapScalarEntry
testproto.test3_pb2.OuterMessage3
testproto.test3_pb2.SimpleProto3
testproto.test3_pb2.SimpleProto3.EmailByUidEntry
testproto.test3_pb2.SimpleProto3.MapMessageEntry
testproto.test3_pb2.SimpleProto3.MapScalarEntry
testproto.test_extensions2_pb2.SeparateFileExtension
testproto.test_extensions3_pb2.MessageOptionsTestMsg
testproto.test_no_generic_services_pb2.Simple3
testproto.test_pb2.Extensions1
testproto.test_pb2.Extensions2
testproto.test_pb2.SelfField
testproto.test_pb2.Simple1
testproto.test_pb2.Simple1.EmailByUidEntry
testproto.test_pb2.Simple1.InnerMessage
testproto.test_pb2.Simple2