(self: Any, value: Any)
| 55 | return self._file.get(field_name, None) |
| 56 | |
| 57 | def setter(self: Any, value: Any) -> Any: |
| 58 | if warn_str: |
| 59 | warnings.warn(warn_str, stacklevel=2, category=DeprecationWarning) |
| 60 | if self._closed: |
| 61 | raise InvalidOperation( |
| 62 | "AsyncGridIn does not support __setattr__ after being closed(). Set the attribute before closing the file or use AsyncGridIn.set() instead" |
| 63 | ) |
| 64 | self._file[field_name] = value |
| 65 | |
| 66 | if read_only: |
| 67 | docstring += "\n\nThis attribute is read-only." |
nothing calls this directly
no test coverage detected