mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-20 04:21:13 +08:00
added _weakref mixins
This commit is contained in:
8
mixin/_weakref.py
Normal file
8
mixin/_weakref.py
Normal file
@@ -0,0 +1,8 @@
|
||||
def proxy(object, callback=None):
|
||||
return object
|
||||
|
||||
class ref():
|
||||
def __init__(self, object, callback=None):
|
||||
self.__object = object
|
||||
def __call__(self):
|
||||
return self.__object
|
||||
Reference in New Issue
Block a user