Skip to content

Silence some pylint4 warnings#4272

Merged
xrmx merged 13 commits into
open-telemetry:mainfrom
xrmx:silence-some-pylint4-warnings
Mar 12, 2026
Merged

Silence some pylint4 warnings#4272
xrmx merged 13 commits into
open-telemetry:mainfrom
xrmx:silence-some-pylint4-warnings

Conversation

@xrmx

@xrmx xrmx commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Description

Fixed a bunch of issues reported by pylint 4.0.5. I don't see anything particularly useful.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • pylint

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

xrmx added 5 commits February 27, 2026 15:48
Since pylint 4 now raises a different error code
Possibly using variable 'root_span' before assignment (possibly-used-before-assignment)
Possibly using variable 'child_span' before assignment (possibly-used-before-assignment)
…nings

In the form of
Possibly using variable '<var>' before assignment (possibly-used-before-assignment)
E0102: function already defined line 2034 (function-redefined)
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 27, 2026
@xrmx xrmx moved this to Easy to review / merge / close in Python PR digest Feb 27, 2026
@xrmx
xrmx requested a review from a team as a code owner February 27, 2026 17:17
@xrmx
xrmx force-pushed the silence-some-pylint4-warnings branch from 1f57551 to 292c8a9 Compare February 27, 2026 17:24
@xrmx

xrmx commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

I've delegated some of the fixes to Cursor. I've reviewed and committed myself all of them, had to fix manually the util-http one.

@xrmx
xrmx enabled auto-merge (squash) March 12, 2026 10:05
@xrmx
xrmx merged commit b35be0d into open-telemetry:main Mar 12, 2026
848 checks passed
@github-project-automation github-project-automation Bot moved this from Easy to review / merge / close to Done in Python PR digest Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants