Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions pyext.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

import sys, inspect, types, functools

if not hasattr(inspect, 'getargspec'):
inspect.getargspec = inspect.getfullargspec

def _targspec(func, specs, attr='__orig_arg__'):
if hasattr(func, '__is_overload__') and func.__is_overload__:
return getattr(func, attr)
Expand Down