Skip to content

Add custom functions and call counter#996

Merged
canbula merged 10 commits intocanbula:masterfrom
elifyalvac:patch-5
Mar 20, 2026
Merged

Add custom functions and call counter#996
canbula merged 10 commits intocanbula:masterfrom
elifyalvac:patch-5

Conversation

@elifyalvac
Copy link
Contributor

@elifyalvac elifyalvac commented Mar 17, 2026

Defines custom power and equation functions, and a call counter.

Describe your changes

Checklist

  • I have read the [CONTRIBUTING]
  • I have performed a self-review of my own code
  • I have run the code locally and it works as expected
  • I have commented my code, particularly in hard-to-understand areas

Screenshots (if appropriate)

Defines custom power and equation functions, and a call counter.
Updated type hints to use Tuple and Dict from typing.
elifyalvac

This comment was marked as resolved.

Updated function return type annotations to use PEP 585 syntax.
elifyalvac

This comment was marked as resolved.

elifyalvac

This comment was marked as resolved.

elifyalvac

This comment was marked as resolved.

elifyalvac

This comment was marked as resolved.

Updated function signatures and added type checks in custom_equation.
elifyalvac

This comment was marked as resolved.

Copy link
Contributor Author

@elifyalvac elifyalvac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

....

Copy link
Owner

@canbula canbula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try to solve without using global variables and any external modules.

Removed unused imports and global variables. Updated fn_w_counter to use a function attribute for counting calls.
Copy link
Contributor Author

@elifyalvac elifyalvac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@canbula canbula merged commit 9520064 into canbula:master Mar 20, 2026
1 check 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