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

Update for filters and if from_user is None #17

Merged
merged 23 commits into from
Oct 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changes to be committed:
	modified:   pyromod/utils/utils.py
  • Loading branch information
Jusidama-Bot committed Apr 26, 2023
commit 2671a5cc2f598de8e537ad0e19a399e82cefa292
3 changes: 1 addition & 2 deletions pyromod/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ def wrapper(container):


def patchable(is_property: bool = False, is_static: bool = False, is_context: bool = False):
def decorator(func):
def wrapper(func):
func.patchable = True
func.is_property = is_property
func.is_static = is_static
func.is_context = is_context
return func
return wrapper