Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note about why the fields of Slice are @propertys. #175

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

thetorpedodog
Copy link
Contributor

After talking just now I was looking at the protocol and wondered: Why do we not just say class Slice(Protocol[_T_co]): start: Optional[_T_co] etc.? The Named example protocol in the Python docs uses that syntax.

Then I tried it and found out why.

@thetorpedodog thetorpedodog merged commit 7777ac7 into main Oct 7, 2023
6 checks passed
@thetorpedodog thetorpedodog deleted the why-are-these-properties branch October 7, 2023 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants