#[cfg(any(feature = "python", feature = "python-stubgen"))]
use super::*;
#[cfg(feature = "python-stubgen")]
use pyo3_stub_gen_derive::gen_stub_pymethods;
#[cfg_attr(feature = "python-stubgen", gen_stub_pymethods)]
#[cfg_attr(any(feature = "python", feature = "python-stubgen"), pymethods)]
#[cfg(any(feature = "python", feature = "python-stubgen"))]
impl MetafitsContext {
#[new]
#[pyo3(signature = (metafits_filename, mwa_version=None), text_signature = "(metafits_filename: str, mwa_version: typing.Optional[MWAVersion]=None)")]
fn pyo3_new(metafits_filename: &str, mwa_version: Option<MWAVersion>) -> pyo3::PyResult<Self> {
let m = Self::new(metafits_filename, mwa_version)?;
Ok(m)
}
fn __repr__(&self) -> String {
format!("{}", self)
}
fn __enter__(slf: Py<Self>) -> Py<Self> {
slf
}
fn __exit__(
&mut self,
_exc_type: &Bound<PyAny>,
_exc_value: &Bound<PyAny>,
_traceback: &Bound<PyAny>,
) {
}
}