remove custom __copy__
no longer necessary now that we're not locking anything
This commit is contained in:
parent
33529f5ed3
commit
24c77fd3c3
@ -1,4 +1,4 @@
|
|||||||
from typing import Callable, Self, TYPE_CHECKING
|
from typing import Callable, TYPE_CHECKING, Any
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
@ -32,12 +32,12 @@ class Shape(PositionableImpl, Rotatable, Mirrorable, Copyable, Scalable,
|
|||||||
"""
|
"""
|
||||||
__slots__ = () # Children should use AutoSlots or set slots themselves
|
__slots__ = () # Children should use AutoSlots or set slots themselves
|
||||||
|
|
||||||
def __copy__(self) -> Self:
|
#def __copy__(self) -> Self:
|
||||||
cls = self.__class__
|
# cls = self.__class__
|
||||||
new = cls.__new__(cls)
|
# new = cls.__new__(cls)
|
||||||
for name in self.__slots__: # type: str
|
# for name in self.__slots__: # type: str
|
||||||
object.__setattr__(new, name, getattr(self, name))
|
# object.__setattr__(new, name, getattr(self, name))
|
||||||
return new
|
# return new
|
||||||
|
|
||||||
#
|
#
|
||||||
# Methods (abstract)
|
# Methods (abstract)
|
||||||
|
Loading…
Reference in New Issue
Block a user