Sebastian Rittau
711580722b
Enable pyright for all Python 3 stubs ( #5597 )
...
* pyright: disable reportUnknownParameterType
Unknown parameter types are preferred over Any annotations for
incomplete stubs. Especially larger stubs are expected to be
incomplete for some time and it would be a shame to lose the
other pyright warnings for those stubs.
* Also disable reportUnknownVariableType
Fix problems with tkinter
* Disable reportUnknownMemberType
Fix pyright problems
2021-06-09 07:14:22 -07:00
Jukka Lehtosalo
a5e243fbcd
Change some str types to Text in google.protobuf.text_format ( #5343 )
...
Python 2 `unicode` values are supported. For example:
https://github.com/protocolbuffers/protobuf/blob/master/python/google/protobuf/text_format.py#L843
2021-05-05 09:33:59 +01:00
Jukka Lehtosalo
fe4acabdd7
Allow bytes in addition to str in google.protobuf.text_format ( #5267 )
2021-04-30 15:46:29 +02:00
Sebastian Rittau
4ac3ccad45
black: enable skip_magic_trailing_comma ( #5252 )
...
* black: enable skip_magic_trailing_comma
* Remove spurious commas
2021-04-27 08:32:32 -07:00
heroesm
2aff78dac2
Fix protobuf json_format signatures. ( #5226 )
2021-04-19 14:59:48 +02:00
Shantanu
fa9d5a5e9f
future first: switch the order of some if statements ( #5206 )
...
Since we're adding this to our contribution guidelines in
https://github.com/python/typeshed/pull/5205
2021-04-11 06:44:18 -07:00
hatal175
5fef564636
Protobuf text_format stubs ( #5167 )
...
Fixes #1781
2021-04-08 18:02:38 -07:00
Dante Camarena
1d1d35c87a
Updated descriptor.pyi in protobuf stubs. ( #5007 )
2021-02-22 15:15:44 +01:00
Alexander Reynolds
0b1cd59896
Updated protobuf descriptor pool ( #5018 )
2021-02-13 11:23:26 +01:00
Nipunn Koorapati
a3b3f6845b
Allow unicode and bytes in the EnumTypeWrapper.Value classmethod ( #5004 )
...
Here is a unit test which shows that this behavior is accepted
by protobuf itself at runtime in both py2 and py3
https://github.com/dropbox/mypy-protobuf/pull/205
2021-02-04 15:03:37 +00:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00