Skip to content

test: document TypeForm rejection after inspect.isclass - #5047

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:tests-only-pr-4830
Open

asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:tests-only-pr-4830

Conversation

@asukaminato0721

@asukaminato0721 asukaminato0721 commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A TypeForm narrowed by inspect.isclass is rejected by isinstance. The test records that incorrect diagnostic and documents that the call should be accepted.

The testcase! regressions use bug = markers and comments documenting the correct behavior. These are passing tests of known bugs, following the repository test guidance.

The complete implementation and regression tests remain in PR #4830. Related issue: #4822.

Validation

Based on upstream main at ef6de648bce0dc6dcca0a21a9fbb7490f23ecce8.

  • cargo test -p pyrefly --lib -- test_isclass_typeform_class_info — passed.
  • python3 test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschema --no-extension — passed.

@meta-codesync

meta-codesync Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D122390360. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

This comment has been minimized.

@github-actions
github-actions Bot requested a review from rchen152 September 30, 2026 09:21
@github-actions github-actions Bot added size/xs and removed size/xs labels Oct 2, 2026
@asukaminato0721 asukaminato0721 changed the title test: use TypeForm narrowed by inspect.isclass in isinstance test: document TypeForm rejection after inspect.isclass Oct 2, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the stale label Oct 22, 2026
@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@github-actions github-actions Bot removed the stale label Oct 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants