returns the strings in the __all__ attribute
(obj)
| 1405 | |
| 1406 | |
| 1407 | def get__all__entries(obj): |
| 1408 | """returns the strings in the __all__ attribute""" |
| 1409 | try: |
| 1410 | words = getattr(obj, '__all__') |
| 1411 | except Exception: |
| 1412 | return [] |
| 1413 | |
| 1414 | return [w for w in words if isinstance(w, str)] |
| 1415 | |
| 1416 | |
| 1417 | class _DictKeyState(enum.Flag): |
no outgoing calls
no test coverage detected
searching dependent graphs…