diff --git a/src/wrapt/decorators.py b/src/wrapt/decorators.py index 8b6e6751..c3f25472 100644 --- a/src/wrapt/decorators.py +++ b/src/wrapt/decorators.py @@ -384,7 +384,7 @@ def _capture(target_wrapped): # This one is a bit strange because binding was actually # performed on the wrapper created by our decorator # factory. We need to apply that binding to the decorator - # wrapper function which which the decorator factory + # wrapper function that the decorator factory # was applied to. target_wrapper = wrapper.__get__(None, instance) @@ -408,7 +408,7 @@ def _capture(target_wrapped): # This one is a bit strange because binding was actually # performed on the wrapper created by our decorator # factory. We need to apply that binding to the decorator - # wrapper function which which the decorator factory + # wrapper function that the decorator factory # was applied to. target_wrapper = wrapper.__get__(instance, type(instance)) diff --git a/src/wrapt/wrappers.py b/src/wrapt/wrappers.py index 2bc6136f..2ef64349 100644 --- a/src/wrapt/wrappers.py +++ b/src/wrapt/wrappers.py @@ -87,7 +87,7 @@ def __init__(self, wrapped): pass # Python 3.10 onwards also does not allow itself to be overridden - # using a properly and it must instead be set explicitly. + # using a property and it must instead be set explicitly. try: object.__setattr__(self, '__annotations__', wrapped.__annotations__)