This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import types | |
from typing import Callable, Dict | |
def _funcify(obj: object, key: str, hist: Dict) -> str: | |
""" | |
Call {obj}.{key}() if possible. | |
@param hist: A dict that starts empty when we begin enumerating an object. | |
If this method would otherwise recurse, even in a loop, don't. |