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 stdlib deprecations from 3.12 #8856

Merged
merged 2 commits into from
Jul 15, 2023

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
✨ New feature

Description

Add stdlib deprecations from Python 3.12. Some missing items are attributes, tracked in #8855.

@jacobtylerwalls jacobtylerwalls added Enhancement ✨ Improvement to a component Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Jul 15, 2023
@jacobtylerwalls jacobtylerwalls added this to the 3.0.0a7 milestone Jul 15, 2023
@@ -253,6 +257,12 @@
"unittest.TestLoader.loadTestsFromTestCase",
"unittest.TestLoader.getTestCaseNames",
},
(3, 12, 0): {
"builtins.bool.__invert__",
Copy link
Member Author

Choose a reason for hiding this comment

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

This one doesn't have any effect because ~ is currently uninferable, but it doesn't hurt to have this here in case we fix it in astroid later.

@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Merging #8856 (98e454a) into main (3655f95) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8856   +/-   ##
=======================================
  Coverage   95.88%   95.88%           
=======================================
  Files         173      173           
  Lines       18552    18552           
=======================================
  Hits        17789    17789           
  Misses        763      763           
Impacted Files Coverage Δ
pylint/checkers/stdlib.py 96.85% <ø> (ø)

@github-actions
Copy link
Contributor

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 98e454a

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you @jacobtylerwalls ! On the topic of deprecation did you see this thread ? (Nothing to do with the current MR, but it could make this simpler in the future :)

@jacobtylerwalls jacobtylerwalls merged commit a074563 into pylint-dev:main Jul 15, 2023
42 checks passed
@jacobtylerwalls jacobtylerwalls deleted the 312-depr branch July 15, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants