Skip to content

Commit 28fcc97

Browse files
committed
try pyo3 main
1 parent c818c3e commit 28fcc97

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

Cargo.lock

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ include = [
2626
]
2727

2828
[dependencies]
29-
pyo3 = "0.18.2"
29+
pyo3 = { git = "https://github.com/PyO3/pyo3", branch = "main" }
3030
regex = "1.6.0"
3131
strum = { version = "0.24.1", features = ["derive"] }
3232
strum_macros = "0.24.3"
@@ -58,9 +58,9 @@ codegen-units = 1
5858
strip = true
5959

6060
[dev-dependencies]
61-
pyo3 = { version = "0.18.2", features = ["auto-initialize"] }
61+
pyo3 = { git = "https://github.com/PyO3/pyo3", branch = "main", features = ["auto-initialize"] }
6262

6363
[build-dependencies]
6464
version_check = "0.9.4"
6565
# used where logic has to be version/distribution specific, e.g. pypy
66-
pyo3-build-config = "0.18.2"
66+
pyo3-build-config = { git = "https://github.com/PyO3/pyo3", branch = "main" }

src/input/input_python.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ macro_rules! extract_shared_iter {
4343
#[cfg(not(PyPy))]
4444
macro_rules! extract_dict_iter {
4545
($obj:ident) => {
46-
if $obj.is_instance_of::<PyDictKeys>().unwrap_or(false) {
46+
if $obj.is_instance_of::<PyDictKeys>() {
4747
Some($obj.into())
48-
} else if $obj.is_instance_of::<PyDictValues>().unwrap_or(false) {
48+
} else if $obj.is_instance_of::<PyDictValues>() {
4949
Some($obj.into())
50-
} else if $obj.is_instance_of::<PyDictItems>().unwrap_or(false) {
50+
} else if $obj.is_instance_of::<PyDictItems>() {
5151
Some($obj.into())
5252
} else {
5353
None
@@ -297,7 +297,7 @@ impl<'a> Input<'a> for PyAny {
297297
}
298298

299299
fn ultra_strict_float(&self) -> ValResult<f64> {
300-
if matches!(self.is_instance_of::<PyInt>(), Ok(true)) {
300+
if self.is_instance_of::<PyInt>() {
301301
Err(ValError::new(ErrorType::FloatType, self))
302302
} else if let Ok(float) = self.extract::<f64>() {
303303
Ok(float)

0 commit comments

Comments
 (0)