MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / is_writable_file_like

Function is_writable_file_like

lib/matplotlib/cbook.py:517–519  ·  view source on GitHub ↗

Return whether *obj* looks like a file object with a *write* method.

(obj)

Source from the content-addressed store, hash-verified

515
516
517def is_writable_file_like(obj):
518 """Return whether *obj* looks like a file object with a *write* method."""
519 return callable(getattr(obj, 'write', None))
520
521
522def file_requires_unicode(x):

Callers 2

_print_figureMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…