Skip to content

Minor tweaks to PEP 544 - #1046

Merged
ilevkivskyi merged 2 commits into
python:masterfrom
ilevkivskyi:last-minor-tweaks-544
May 13, 2019
Merged

ilevkivskyi merged 2 commits into
python:masterfrom
ilevkivskyi:last-minor-tweaks-544

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

cc @gvanrossum @JukkaL @ambv

This PR contains mostly minor wording tweaks plus a paragraph explicitly allowing class objects as implementations of protocols, previously there were questions whether it is actually allowed, see python/mypy#4536.

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where’s the text about classes inheriting from protocols?

Comment thread pep-0544.txt Outdated
...
else:
# type of x is "int" here?
# Statically type of x is int statically,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Twice statically

@ilevkivskyi

ilevkivskyi commented May 12, 2019 •

Copy link
Copy Markdown
Member Author

Where’s the text about classes inheriting from protocols?

Do you mean normal classes inheriting from protocols or protocols inheriting from other protocols? These are in different sections. One is Explicitly declaring implementation other is Merging and extending protocols.

@gvanrossum gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was referring to class objects as mentioned in the PR description. But now I see it’s okay.

@ilevkivskyi
ilevkivskyi merged commit 8aecf9d into python:master May 13, 2019
@ilevkivskyi
ilevkivskyi deleted the last-minor-tweaks-544 branch May 13, 2019 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants