mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 19:20:14 +03:00
Bugfix: fix NO_VALUE copy semantics
Previously copying the NO_VALUE singleton would yield a different instance. This caused some problems. Now it really is a singleton.
This commit is contained in:
parent
84302aa172
commit
1054502d5d
|
@ -154,5 +154,11 @@ class NoValue:
|
|||
def __repr__(self):
|
||||
return "NO_VALUE"
|
||||
|
||||
def __copy__(self):
|
||||
return self
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
return self
|
||||
|
||||
|
||||
NO_VALUE = NoValue()
|
||||
|
|
Loading…
Reference in New Issue
Block a user