Skip to content

Messages name a class with getTypeName - #60

Merged
Paebbels merged 1 commit into
devfrom
claude/gettypename
Oct 20, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/gettypename

Conversation

@pytooling-claude

Copy link
Copy Markdown

Changes

  • pyTooling.Sphinx, pyTooling.Sphinx.CodeCoverage, pyTooling.Sphinx.CodeCoveragePages, pyTooling.Sphinx.DocCoverage, pyTooling.Sphinx.Unittest, pyTooling.Sphinx.UnittestPages: messages reporting a caught exception or warning name its class with getTypeName(...) from pyTooling.Common instead of obj.__class__.__name__; the texts are unchanged.
  • pyTooling.Sphinx.ExternalLink: the abstract BaseExternalLinkTransform._Selects names the class with getTypeName(self).

Unit Tests

  • No test changes: for an instance getTypeName(obj) returns obj.__class__.__name__. 425 passed.

Related Issues and Pull-Requests

'obj.__class__.__name__' is replaced by 'getTypeName(obj)' (pyTooling 10.0.0rc4, pyTooling/pyTooling#592) in the
messages reporting a caught exception or warning and in the abstract 'ExternalLink._Selects'. For an instance it
returns the same name. The pyTooling floor is 10.0.0rc4 already (#53).

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 20, 2026 07:41
@pytooling-claude pytooling-claude Bot added the Enhancement New feature or request label Oct 20, 2026
@codacy-production

codacy-production Bot commented Oct 20, 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 77.27% diff coverage · +0.01% coverage variation

Metric Results
Coverage variation ✅ +0.01% coverage variation (-1.00%)
Diff coverage ✅ 77.27% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (dc71666) 4887 4286 87.70%
Head commit (e7fdc38) 4890 (+3) 4289 (+3) 87.71% (+0.01%)

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 (#60) 22 17 77.27%

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.

@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 20, 2026
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.41%. Comparing base (dc71666) to head (e7fdc38).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
pyTooling/Sphinx/CodeCoverage.py 40.00% 3 Missing ⚠️
pyTooling/Sphinx/DocCoverage.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev      #60   +/-   ##
=======================================
  Coverage   85.41%   85.41%           
=======================================
  Files          24       24           
  Lines        4887     4890    +3     
  Branches      787      787           
=======================================
+ Hits         4174     4177    +3     
  Misses        601      601           
  Partials      112      112           
Flag Coverage Δ
unittests 85.41% <77.27%> (+<0.01%) ⬆️

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Paebbels
Paebbels merged commit 00ac4f9 into dev Oct 20, 2026
58 of 59 checks passed
@Paebbels
Paebbels deleted the claude/gettypename branch October 20, 2026 18:15
This was referenced Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants