summaryrefslogtreecommitdiffstats
path: root/Lib/_threading_local.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_threading_local.py')
-rw-r--r--Lib/_threading_local.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_threading_local.py b/Lib/_threading_local.py
index 245bd0a..b006d76 100644
--- a/Lib/_threading_local.py
+++ b/Lib/_threading_local.py
@@ -56,7 +56,7 @@ You can create custom local objects by subclassing the local class:
>>> class MyLocal(local):
... number = 2
- ... def __init__(self, **kw):
+ ... def __init__(self, /, **kw):
... self.__dict__.update(kw)
... def squared(self):
... return self.number ** 2
@@ -204,7 +204,7 @@ def _patch(self):
class local:
__slots__ = '_local__impl', '__dict__'
- def __new__(cls, *args, **kw):
+ def __new__(cls, /, *args, **kw):
if (args or kw) and (cls.__init__ is object.__init__):
raise TypeError("Initialization arguments are not supported")
self = object.__new__(cls)