diff --git a/pep-0612.rst b/pep-0612.rst index 50bc801e7..99c351899 100644 --- a/pep-0612.rst +++ b/pep-0612.rst @@ -1,6 +1,7 @@ PEP: 612 Title: Parameter Specification Variables Author: Mark Mendoza +Sponsor: Guido van Rossum Discussions-To: Typing-Sig Status: Draft Type: Standards Track @@ -162,7 +163,7 @@ evaluating ones with ``TypeVar``\ s. f = foo(bar) # f should be inferred to have the same signature as bar, # but returning str f("A", True) # Accepted - f(a = "A", b = True) # Accepted + f(a="A", b=True) # Accepted f("A", "A") # Rejected Just as with traditional ``TypeVars``\ , a user may include the same @@ -194,8 +195,8 @@ Use in ``Generic`` Classes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Just as with normal ``TypeVar``\ s, ``ParameterSpecification``\ s can be used to -make generic classes as well as generic functions. These ought to be able to be -mixed with normal ``TypeVar``\ s. This should also be made to work with +make generic classes as well as generic functions. These are able to be +mixed with normal ``TypeVar``\ s. This also work with protocols in the same manner. The components of a ``ParameterSpecification``