Skip to content

Bug Fix for callback function to check callable type and 4 params#16

Open
scorpi023 wants to merge 1 commit into
bannsec:masterfrom
scorpi023:patch-1
Open

Bug Fix for callback function to check callable type and 4 params#16
scorpi023 wants to merge 1 commit into
bannsec:masterfrom
scorpi023:patch-1

Conversation

@scorpi023

Copy link
Copy Markdown

1: Accommodates class methods, which will have an additional self parameter, making a total of 4 parameters in addition to 3.
2: Use the callable() built-in function to check if callback is a callable object, as it will handle all types of functions, methods, and any object implementing the call method.

…ameters

Bug Fix: Accommodates class methods, which will have an additional self parameter, making a total of 4 parameters in addition to 3. 
Bug Fix: Use the callable() built-in function to check if callback is a callable object, as it will handle all types of functions, methods, and any object implementing the __call__ method.
@scorpi023

Copy link
Copy Markdown
Author

Addresses this issue - #7 as well.

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.

1 participant