Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,6 @@ def longest(x: A, y: A) -> A:
Note that only type variables defined in global scope can be pickled.
"""

__slots__ = ('__name__', '__bound__', '__constraints__',
'__covariant__', '__contravariant__', '__dict__')

def __init__(self, name, *constraints, bound=None,
covariant=False, contravariant=False):
self.__name__ = name
Expand Down Expand Up @@ -907,9 +904,6 @@ def add_two(x: float, y: float) -> float:
be pickled.
"""

__slots__ = ('__name__', '__bound__', '__covariant__', '__contravariant__',
'__dict__')

@property
def args(self):
return ParamSpecArgs(self)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Removed ``__slots__`` from :class:``typing.ParamSpec`` and :class:``typing.TypeVar``.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Removed ``__slots__`` from :class:``typing.ParamSpec`` and :class:``typing.TypeVar``.
Removed ``__slots__`` from :class:`typing.ParamSpec` and :class:`typing.TypeVar`.

rst uses single backticks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops! Committed the fix below ✅

They served no purpose. Patch by Arie Bovenberg.