File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,13 @@ class Proxy:
105
105
if new instance attributes are created. See the Const class
106
106
"""
107
107
108
- _proxied = None # proxied object may be set by class or by instance
108
+ _proxied : nodes .ClassDef | nodes .Lambda | Proxy | None = (
109
+ None # proxied object may be set by class or by instance
110
+ )
109
111
110
- def __init__ (self , proxied = None ):
112
+ def __init__ (
113
+ self , proxied : nodes .ClassDef | nodes .Lambda | Proxy | None = None
114
+ ) -> None :
111
115
if proxied is not None :
112
116
self ._proxied = proxied
113
117
@@ -430,7 +434,7 @@ def _infer_builtin_new(
430
434
node_context = context .extra_context .get (caller .args [0 ])
431
435
infer = caller .args [0 ].infer (context = node_context )
432
436
433
- yield from (Instance (x ) if x is not Uninferable else x for x in infer ) # type: ignore[misc]
437
+ yield from (Instance (x ) if x is not Uninferable else x for x in infer ) # type: ignore[misc,arg-type ]
434
438
435
439
def bool_value (self , context = None ):
436
440
return True
You can’t perform that action at this time.
0 commit comments