Skip to content

Add test cases for introspection limiter loop short-circuits #3

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025

Conversation

emcd
Copy link
Owner

@emcd emcd commented Jun 2, 2025

Add test coverage for the loop short-circuit branches in _decorate_class_attributes and _decorate_module_attributes that skip attribute decoration when introspection.enable is False after applying introspection limits.

The tests use a custom introspection limiter that conditionally disables introspection for objects with a _skip_introspection marker attribute, properly exercising the if not introspection_.enable: continue branches added in commit 54798fa.

Resolves #2

🤖 Generated with Claude Code

claude bot and others added 2 commits June 2, 2025 04:07
Add test coverage for the loop short-circuit branches in _decorate_class_attributes 
and _decorate_module_attributes that skip attribute decoration when 
introspection.enable is False after applying introspection limits.

The tests use a custom introspection limiter that conditionally disables 
introspection for objects with a _skip_introspection marker attribute, 
properly exercising the `if not introspection_.enable: continue` branches 
added in commit 54798fa.

Co-Authored-By: Claude <[email protected]>
@emcd emcd merged commit 654604a into master Jun 2, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test cases where introspection limiter turns off introspection on certain module or class members.
1 participant