returns the strings in the __all__ attribute
(obj)
| 734 | |
| 735 | |
| 736 | def get__all__entries(obj): |
| 737 | """returns the strings in the __all__ attribute""" |
| 738 | try: |
| 739 | words = getattr(obj, '__all__') |
| 740 | except: |
| 741 | return [] |
| 742 | |
| 743 | return [w for w in words if isinstance(w, str)] |
| 744 | |
| 745 | |
| 746 | def match_dict_keys(keys: List[str], prefix: str, delims: str): |