8000 Suppress errors from semantic analysis in dynamic (unannotated) functions. by gvanrossum · Pull Request #1415 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Suppress errors from semantic analysis in dynamic (unannotated) functions. #1415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 22, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clean up SemanticAnalyzer.__init__().
  • Loading branch information
Guido van Rossum committed Apr 21, 2016
commit a09a5e0e77ac21a894977076472bde224a2b4251
8 changes: 5 additions & 3 deletions mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ class SemanticAnalyzer(NodeVisitor):
imports = None # type: Set[str] # Imported modules (during phase 2 analysis)
errors = None # type: Errors # Keeps track of generated errors

def __init__(self, lib_path: List[str], errors: Errors,
pyversion: Tuple[int, int] = defaults.PYTHON3_VERSION,
check_untyped_defs: bool = False) -> None:
def __init__(self,
lib_path: List[str],
errors: Errors,
pyversion: Tuple[int, int],
check_untyped_defs: bool) -> None:
"""Construct semantic analyzer.

Use lib_path to search for modules, and report analysis errors
Expand Down
0