Skip to content

[FIX] *: support for pylint 4#236720

Closed
fw-bot wants to merge 1 commit intoodoo:saas-18.4from
odoo-dev:saas-18.4-17.0-astroid-4-compat-xmo-478734-fw
Closed

[FIX] *: support for pylint 4#236720
fw-bot wants to merge 1 commit intoodoo:saas-18.4from
odoo-dev:saas-18.4-17.0-astroid-4-compat-xmo-478734-fw

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Nov 20, 2025

  • astroid 4 deprecates toplevel exports of nodes, thankfully that was never actually necessary so we can just import that unconditionally
  • remove support for pre-jammy pylint / astroid, specifically astroid.nodes was added in astroid 2.7.0 and astroid.node_classes deprecated then and removed in 3.0, this can affect Bullseye users as it shipped with astroid 2.5
  • Astroid 4 changes spec.Finder.find_module in order to cache it (Make Finder.find_module static to facilitate future caching pylint-dev/astroid#2509), we can just make our method static for all versions as we don't need self anyway.
  • The mail test triggers function-redefined (E0102), fix it.
  • Skip the escpos script thing which triggers a bunch of undefined-variable (E0602) false positives.

Forward-Port-Of: #236530
Forward-Port-Of: #236258

- astroid 4 deprecates toplevel exports of nodes, thankfully that was
  never actually necessary so we can just import that unconditionally
- remove support for pre-jammy pylint / astroid, specifically
  `astroid.nodes` was added in astroid 2.7.0 and
  `astroid.node_classes` deprecated then and removed in 3.0, this can
  affect Bullseye users as it shipped with astroid 2.5
- Astroid 4 changes `spec.Finder.find_module` in order to cache it
  (pylint-dev/astroid#2509), we can just make our method static for
  all versions as we don't need `self` anyway.
- The mail test triggers `function-redefined` (E0102), fix it.
- Skip the escpos script thing which triggers a bunch of
  `undefined-variable` (E0602) false positives.

X-original-commit: 70bfdf4
@robodoo
Copy link
Contributor

robodoo commented Nov 20, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Nov 20, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Nov 20, 2025

This PR targets saas-18.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Contributor Author

fw-bot commented Nov 20, 2025

@xmo-odoo the next pull request (#236766) is in conflict. You can merge the chain up to here by saying

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@xmo-odoo
Copy link
Collaborator

@robodoo r+

robodoo pushed a commit that referenced this pull request Nov 21, 2025
- astroid 4 deprecates toplevel exports of nodes, thankfully that was
  never actually necessary so we can just import that unconditionally
- remove support for pre-jammy pylint / astroid, specifically
  `astroid.nodes` was added in astroid 2.7.0 and
  `astroid.node_classes` deprecated then and removed in 3.0, this can
  affect Bullseye users as it shipped with astroid 2.5
- Astroid 4 changes `spec.Finder.find_module` in order to cache it
  (pylint-dev/astroid#2509), we can just make our method static for
  all versions as we don't need `self` anyway.
- The mail test triggers `function-redefined` (E0102), fix it.
- Skip the escpos script thing which triggers a bunch of
  `undefined-variable` (E0602) false positives.

closes #236720

X-original-commit: 70bfdf4
Related: odoo/enterprise#100053
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
@robodoo robodoo closed this Nov 21, 2025
@fw-bot fw-bot deleted the saas-18.4-17.0-astroid-4-compat-xmo-478734-fw branch November 28, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants