8000 Explicit types for bindables ("Tighten Types" continued) by elazarg · Pull Request #2238 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Explicit types for bindables ("Tighten Types" continued) #2238

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 19 commits into from
Mar 27, 2017
Merged
Show file tree
Hide file tree
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
Next Next commit
Merge remote-tracking branch 'upstream/master' into bindables
Conflicts:
	mypy/checker.py
	mypy/nodes.py
  • Loading branch information
elazarg committed Mar 15, 2017
commit 5f36c72da914aa6603dd9fac1fd3cc0cfd4f9fcb
4 changes: 2 additions & 2 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
from mypy.visitor import StatementVisitor
from mypy.join import join_types
from mypy.treetransform import TransformVisitor
from mypy.meet import meet_simple, is_overlapping_types

from mypy.binder import ConditionalTypeBinder, get_declaration
from mypy.meet import is_overlapping_types
from mypy.options import Options

from mypy import experiments
Expand Down Expand Up @@ -2089,7 +2090,6 @@ def visit_del_stmt(self, s: DelStmt) -> None:
if isinstance(elt, NameExpr):
self.binder.assign_type(elt, DeletedType(source=elt.name),
get_declaration(elt), False)
return None

def visit_decorator(self, e: Decorator) -> None:
for d in e.decorators:
Expand Down
3 changes: 3 additions & 0 deletions mypy/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ class Expression(Node):
literal = LITERAL_NO
literal_hash = None # type: Key

def accept(self, visitor: ExpressionVisitor[T]) -> T:
raise RuntimeError('Not implemented')


# TODO:
# Lvalue = Union['NameExpr', 'MemberExpr', 'IndexExpr', 'SuperExpr', 'StarExpr'
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0