Skip to content

Commit 6107686

Browse files
authored
Remove: Unnecessary py tokens in InstructionProperties. (Qiskit#13993)
1 parent 6877913 commit 6107686

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/accelerate/src/target_transpiler/instruction_properties.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ impl InstructionProperties {
3939
/// set of qubits.
4040
#[new]
4141
#[pyo3(signature = (duration=None, error=None))]
42-
pub fn new(_py: Python<'_>, duration: Option<f64>, error: Option<f64>) -> Self {
42+
pub fn new(duration: Option<f64>, error: Option<f64>) -> Self {
4343
Self { error, duration }
4444
}
4545

4646
fn __getstate__(&self) -> PyResult<(Option<f64>, Option<f64>)> {
4747
Ok((self.duration, self.error))
4848
}
4949

50-
fn __setstate__(&mut self, _py: Python<'_>, state: (Option<f64>, Option<f64>)) -> PyResult<()> {
50+
fn __setstate__(&mut self, state: (Option<f64>, Option<f64>)) -> PyResult<()> {
5151
self.duration = state.0;
5252
self.error = state.1;
5353
Ok(())
5454
}
5555

56-
fn __repr__(&self, _py: Python<'_>) -> String {
56+
fn __repr__(&self) -> String {
5757
format!(
5858
"InstructionProperties(duration={}, error={})",
5959
if let Some(duration) = self.duration {

0 commit comments

Comments
 (0)