Skip to content
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

Use callable() to check callable in ldms.Xprt (ldms.pyx) #1415

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

narategithub
Copy link
Collaborator

The isinstance(cb, types.FunctionType) check does not cover all callables. If the application supplies a method as cb, the isinstance check failed. This patch modifies the condition to use callable() check instead to cover all callable types.

@narategithub narategithub requested a review from tom95858 July 10, 2024 10:22
The `isinstance(cb, types.FunctionType)` check does not cover all
callables. If the application supplies a method as `cb`, the
`isinstance` check failed. This patch modifies the condition to use
`callable()` check instead to cover all callable types.
@tom95858 tom95858 merged commit 2972f94 into ovis-hpc:OVIS-4 Jul 12, 2024
14 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.

2 participants