Skip to content

Commit

Permalink
Clarify that the provider decorator is Python 3-only
Browse files Browse the repository at this point in the history
  • Loading branch information
jstasiak committed May 18, 2017
1 parent f4d14b6 commit 408b7fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,8 @@ def provider(function):
>>> injector = Injector(MyModule2)
>>> injector.get(str)
'654'
.. note:: This function works only on Python 3
"""
scope_ = getattr(provider, '__scope__', None)
annotations = getfullargspec(function).annotations
Expand Down

0 comments on commit 408b7fc

Please sign in to comment.