mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-03 11:40:20 +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):
|
def __repr__(self):
|
||||||
return "NO_VALUE"
|
return "NO_VALUE"
|
||||||
|
|
||||||
|
def __copy__(self):
|
||||||
|
return self
|
||||||
|
|
||||||
|
def __deepcopy__(self, memo):
|
||||||
|
return self
|
||||||
|
|
||||||
|
|
||||||
NO_VALUE = NoValue()
|
NO_VALUE = NoValue()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user