Skip to content

Use stdlib typing.final in Python 3.8+ #259

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 11, 2021
Merged

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Nov 10, 2021

What do these changes do?

The "final" decorator is part of the stdlib typing module since
Python 3.8. Use it in new enough Python versions, and fall back
to typing_extensions in older versions.

Are there changes in behavior for the user?

Nope.

Related issue number

n/a

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

The "final" decorator is part of the stdlib typing module since
Python 3.8.  Use it in new enough Python versions, and fall back
to typing_extensions in older versions.
@codecov
Copy link

codecov bot commented Nov 10, 2021

Codecov Report

Merging #259 (f84ebaf) into master (3cda737) will not change coverage.
The diff coverage is 100.00%.

❗ Current head f84ebaf differs from pull request most recent head 4bb23d9. Consider uploading reports for the commit 4bb23d9 to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##            master      #259   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          116       118    +2     
  Branches        18        19    +1     
=========================================
+ Hits           116       118    +2     
Flag Coverage Δ
unit 97.45% <66.66%> (-0.82%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
async_timeout/__init__.py 100.00% <100.00%> (ø)

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 3cda737...4bb23d9. Read the comment docs.

@asvetlov asvetlov enabled auto-merge (squash) November 11, 2021 05:56
Copy link
Member

@asvetlov asvetlov left a comment

Choose a reason for hiding this comment

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

Thanks!

@asvetlov asvetlov merged commit 5dcb3b7 into aio-libs:master Nov 11, 2021
netbsd-srcmastr referenced this pull request in NetBSD/pkgsrc Jan 8, 2022
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