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

Enable @autowired decorator to be called without parenthesis #4

Closed
roo-oliv opened this issue Feb 8, 2018 · 1 comment
Closed

Enable @autowired decorator to be called without parenthesis #4

roo-oliv opened this issue Feb 8, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@roo-oliv
Copy link
Owner

roo-oliv commented Feb 8, 2018

When one doesn't want to pass in any parameters into @autowired decorator they can't symple do:

@autowired
def foo(...)

Instead they are required to use empty parenthesis for it to work:

@autowired()
def foo(...)

It would be best to omit the parenthesis when no arguments will be used.

@roo-oliv roo-oliv added the help wanted Extra attention is needed label Feb 8, 2018
@roo-oliv
Copy link
Owner Author

roo-oliv commented Feb 8, 2018

Celery's task decorator implements this feature. Investigating it's implementation may be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant