Skip to content

docs: Fix typos #1124

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

Merged
merged 1 commit into from
Nov 12, 2021
Merged

docs: Fix typos #1124

merged 1 commit into from
Nov 12, 2021

Conversation

q0w
Copy link
Contributor

@q0w q0w commented Nov 12, 2021

ref:
final: python/mypy#8316

I have made things!

Checklist

  • I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc)
  • I have created at least one test case for the changes I have made
  • I have updated the documentation for the changes I have made
  • I have added my changes to the CHANGELOG.md

Related issues

🙏 Please, if you or your company finds dry-python valuable, help us sustain the project by sponsoring it transparently on https://github.com/sponsors/dry-python. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -631,7 +631,7 @@ Here's an example that might give you a better understanding of how
from returns.io import IOResultE
from returns.context import ReaderIOResultE

@final
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is not a typo. @final protocols are ones that cannot be subclasses by other protocols.

Or am I missing something? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Referring to python/mypy#8316:

from typing import Protocol, Callable, Any, final


@final
class User(Protocol):
    fetch: Callable[[int], dict[str,Any]]
# error: Final class t.User has abstract attributes "fetch"

Copy link
Member

Choose a reason for hiding this comment

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

Thanks! 👍

@codecov
Copy link

codecov bot commented Nov 12, 2021

Codecov Report

Merging #1124 (8c8064a) into master (cd854df) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1124   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           79        79           
  Lines         2338      2338           
  Branches       153       153           
=========================================
  Hits          2338      2338           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6789256...8c8064a. Read the comment docs.

@sobolevn sobolevn merged commit a2e194d into dry-python:master Nov 12, 2021
@q0w q0w deleted the docs/typos branch November 12, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants