Lines Matching refs:unsafe
1 """A sandbox layer that ensures unsafe operations cannot be performed.
28 #: Unsafe method attributes. Function attributes are unsafe for methods too.
31 #: unsafe generator attributes.
34 #: unsafe attributes on coroutines
37 #: unsafe attributes on async generators
112 def unsafe(f: F) -> F:
113 """Marks a function or method as unsafe.
117 @unsafe
181 for typespec, unsafe in _mutable_spec:
183 return attr in unsafe
269 are considered safe unless decorated with :func:`unsafe`.
339 """Return an undefined object for unsafe attributes."""
342 f" {type(obj).__name__!r} object is unsafe.",