Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix __signature__ support if object has a __file__#992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sebastinas merged 1 commit intobpython:mainfromgpotter2:main
Jul 20, 2023

Conversation

gpotter2
Copy link
Contributor

Followup to#932. I missed an edge-case :(

If a class uses exotic__signature__ typings, but also has a__file__ (thatinspect.getsourcelines finds), then it is ignored whenever_fix_default_values doesn't work. In this case it should just 'trust' the__signature__.

@codecov-commenter
Copy link

codecov-commenter commentedJul 9, 2023
edited
Loading

Codecov Report

Merging#992 (7424efe) intomain (26fc2b5) willdecrease coverage by0.01%.
The diff coverage is92.85%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Pleaseinstall the Github App Integration for your organization.Read more.

@@            Coverage Diff             @@##             main     #992      +/-   ##==========================================- Coverage   76.36%   76.35%   -0.01%==========================================  Files          61       61                Lines        8284     8291       +7     ==========================================+ Hits         6326     6331       +5- Misses       1958     1960       +2
Impacted FilesCoverage Δ
bpython/inspection.py89.82% <83.33%> (+0.23%)⬆️
bpython/test/test_repl.py97.85% <100.00%> (+0.01%)⬆️

... and1 file with indirect coverage changes

@sebastinas
Copy link
Contributor

Could you please add a test case covering such a class?

@gpotter2
Copy link
ContributorAuthor

I updated the previous test to test this edge case :p

@sebastinassebastinas merged commitd58e392 intobpython:mainJul 20, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@gpotter2@codecov-commenter@sebastinas

[8]ページ先頭

©2009-2025 Movatter.jp