MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / set_access

Method set_access

src/de.rs:51–62  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

49 }
50
51 fn set_access(&self) -> Result<PySetAsSequence<'py>> {
52 match self.input.cast::<PySet>() {
53 Ok(set) => Ok(PySetAsSequence::from_set(set)),
54 Err(e) => {
55 if let Ok(f) = self.input.cast::<PyFrozenSet>() {
56 Ok(PySetAsSequence::from_frozenset(f))
57 } else {
58 Err(e.into())
59 }
60 }
61 }
62 }
63
64 fn dict_access(&self) -> Result<PyMappingAccess<'py>> {
65 PyMappingAccess::new(self.input.cast()?)

Callers 1

deserialize_seqMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected