MCPcopy
hub / github.com/celery/celery / supports_images

Function supports_images

celery/utils/term.py:167–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166
167def supports_images() -> bool:
168
169 try:
170 return sys.stdin.isatty() and bool(os.environ.get('ITERM_PROFILE'))
171 except AttributeError:
172 return False
173
174
175def _read_as_base64(path: str) -> str:

Callers 1

test_supports_imagesMethod · 0.90

Calls 2

isattyMethod · 0.80
getMethod · 0.45

Tested by 1

test_supports_imagesMethod · 0.72