Bump to mypy-protobuf 3.3.0 (#8612)

* Bump to mypy-protobuf 3.3.0

* Remove some ignores for formatting
This commit is contained in:
Nipunn Koorapati
2022-08-25 23:24:11 -07:00
committed by GitHub
parent 712b265a16
commit 7beaebff40
17 changed files with 1108 additions and 792 deletions

View File

@@ -96,9 +96,6 @@ def check_new_syntax(tree: ast.AST, path: Path, stub: str) -> list[str]:
def main() -> None:
errors = []
for path in chain(Path("stdlib").rglob("*.pyi"), Path("stubs").rglob("*.pyi")):
if Path("stubs/protobuf/google/protobuf") in path.parents: # TODO: fix protobuf stubs
continue
with open(path) as f:
stub = f.read()
tree = ast.parse(stub)