File: get_unbound_function.py

package info (click to toggle)
python-graphene 3.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,124 kB
  • sloc: python: 8,935; makefile: 212; sh: 18
file content (4 lines) | stat: -rw-r--r-- 121 bytes parent folder | download | duplicates (3)
1
2
3
4
def get_unbound_function(func):
    if not getattr(func, "__self__", True):
        return func.__func__
    return func