8000 Small refactoring · python/mypy@2662e4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2662e4e

Browse files
committed
Small refactoring
1 parent 92fa241 commit 2662e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def _get(self, key: Key, index: int=-1) -> Type:
116116
return self.frames[i][key]
117117
return None
118118

119-
def push(self, expr: Node, type: Type) -> None:
119+
def push(self, expr: Node, typ: Type) -> None:
120120
if not expr.literal:
121121
return
122122
key = expr.literal_hash
123123
self.frames[0][key] = self.get_declaration(expr)
124-
self._push(key, type)
124+
self._push(key, typ)
125125

126126
def get(self, expr: Node) -> Type:
127127
return self._get(expr.literal_hash)

0 commit comments

Comments
 (0)
0