gh-108455: peg_generator: make the mypy config slightly stricter (#108627)

* Enable `--no-implicit-reexport`

* Enable the `truthy-bool` error code

* Enable the `ignore-without-code` error code

* Explicitly note that `--warn-unreachable` cannot yet be enabled
This commit is contained in:
Alex Waygood 2023-08-29 12:23:22 +01:00 committed by GitHub
parent c879b9fddf
commit 0d140b8c5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 8 deletions

View file

@ -12,7 +12,10 @@ import token
import traceback
from typing import Tuple
from pegen.build import Grammar, Parser, ParserGenerator, Tokenizer
from pegen.grammar import Grammar
from pegen.parser import Parser
from pegen.parser_generator import ParserGenerator
from pegen.tokenizer import Tokenizer
from pegen.validator import validate_grammar