• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nielstron / opshin
91%
dev: 92%

Build:
Build:
LAST BUILD BRANCH: openhands-fix-issue-5-try2
DEFAULT BRANCH: dev
Repo Added 31 May 2025 08:45AM UTC
Token jNDJRc3bZX8Vi3prW6HCOKB0a11eYpQt2 regen
Build 13 Last
Files 50
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH openhands-fix-issue-5-try2
branch: openhands-fix-issue-5-try2
CHANGE BRANCH
x
Reset
Sync Branches
  • openhands-fix-issue-5-try2
  • dev
  • fix/filter_type_check
  • main
  • openhands-fix-issue-1-try2
  • openhands-fix-issue-3-try1

14 Sep 2025 09:25AM UTC coverage: 90.856%. First build
17709286207

push

github

openhands-agent
Fix issue #5 with Model B

Summary of Changes:
The changes made attempt to improve the handling of `Self` type annotations by introducing a recursive processing function `_process_annotation_for_self` in the `RewriteImportTyping` class. This function is designed to replace `Self` with the actual class name within complex type annotations such as `Dict[Self, int]` or `Union[Self, int]`. Additionally, the `type_inference.py` file was updated to check for the presence of an `idSelf` attribute on `Name` nodes that represent `Self`, and to raise a more informative error if `Self` is not properly processed.

However, the issue has not been fully resolved because:

1. In `rewrite_import_typing.py`, the code still sets `annotation.idSelf = class_name` when it should likely be setting `annotation.id = class_name` to actually replace the identifier. The attribute `idSelf` does not change the actual type reference used later in the compilation process.

2. In `type_inference.py`, the code looks for `ann.idSelf` but the rewrite phase incorrectly assigns to `idSelf` instead of modifying the `id` attribute directly. This means the type inference phase will not find the rewritten type and will either fail to resolve `Self` or fall back to the error message, which was part of the original problem.

As a result, the core issue of properly resolving `Self` in complex type annotations like `Dict[Self, int]` remains unresolved, and the error messages, while potentially improved, do not indicate that the underlying functionality now works as expected.

Duration: 5m 23s

1916 of 2318 branches covered (82.66%)

Branch coverage included in aggregate %.

6 of 13 new or added lines in 2 files covered. (46.15%)

4761 of 5031 relevant lines covered (94.63%)

1.87 hits per line

Relevant lines Covered
Build:
Build:
5031 RELEVANT LINES 4761 COVERED LINES
1.87 HITS PER LINE
Source Files on openhands-fix-issue-5-try2
  • Tree
  • List 50
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17709286207 openhands-fix-issue-5-try2 Fix issue #5 with Model B Summary of Changes: The changes made attempt to improve the handling of `Self` type annotations by introducing a recursive processing function `_process_annotation_for_self` in the `RewriteImportTyping` class. This funct... push 14 Sep 2025 09:41AM UTC openhands-agent github
90.86
See All Builds (11)

Badge your Repo: opshin

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc