Skip to content

Commit

Permalink
Sentinel copy return self
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbrose authored and mahmoud committed Oct 17, 2024
1 parent d463c60 commit 2ccc509
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boltons/typeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ def __reduce__(self):
def __bool__(self):
return False

def __copy__(self):
return self

def __deepcopy__(self):
return self

if var_name:
frame = sys._getframe(1)
module = frame.f_globals.get('__name__')
Expand Down

0 comments on commit 2ccc509

Please sign in to comment.