Skip to content

Tree: the entry alias names 'Node' without type arguments - #51

Merged
Paebbels merged 1 commit into
devfrom
claude/tree-node-alias
Oct 17, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/tree-node-alias

Conversation

@pytooling-claude

@pytooling-claude pytooling-claude Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

pyTooling's Node drops its key and value type parameters (pyTooling/pyTooling#574: Node takes its key-value-pairs from KeyValuePairsMixin). pyTooling.Sphinx.Tree defines _Entry = Node[None, str, str, Any] at module level, which would raise TypeError: Too many arguments for <class 'pyTooling.Tree.Node'>; actual 4, expected 2 when the module is imported.

Changes

  • _Entry = Node without type arguments. It works with pyTooling 10.0.0rc2 (four parameters) and with the change (two), so this can merge before the next pyTooling release. Once the requirement is raised past that release, it can be written Node[None, str] again.

Unit Tests

  • tests/unit: 424 passed against pyTooling dev and against the pyTooling branch.

Related Issues and Pull-Requests

pyTooling's 'Node' drops its key and value type parameters (pyTooling.Tree uses 'KeyValuePairsMixin'), so
'Node[None, str, str, Any]' raises 'TypeError: Too many arguments' at import. A plain 'Node' works with pyTooling
10.0.0rc2 and with the change.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@codacy-production

codacy-production Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage 100.00% diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (04afb4a) 4879 4253 87.17%
Head commit (9ff6eb7) 4879 (+0) 4253 (+0) 87.17% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#51) 1 1 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.89%. Comparing base (04afb4a) to head (9ff6eb7).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev      #51   +/-   ##
=======================================
  Coverage   84.89%   84.89%           
=======================================
  Files          24       24           
  Lines        4879     4879           
  Branches      785      785           
=======================================
  Hits         4142     4142           
  Misses        626      626           
  Partials      111      111           
Flag Coverage Δ
unittests 84.89% <100.00%> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Paebbels
Paebbels merged commit 8194a39 into dev Oct 17, 2026
59 checks passed
@Paebbels
Paebbels deleted the claude/tree-node-alias branch October 17, 2026 21:11
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants