You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 027b5c7
Browse filesBrowse the repository at this point in the historyBrowse files
/// The possible choices for an alias value in Python
20
20
#[derive(FromPyObject)]
@@ -454,20 +454,3 @@ impl LookupType {
454
454
(selfasu8& other asu8) != 0
455
455
}
456
456
}
457
-
458
-
// TODO replace with `PyAnyMethods::getattr_opt` once https://github.com/PyO3/pyo3/pull/5985 is merged:
Copy file name to clipboardExpand all lines: pydantic-core/src/tools.rs
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ use core::fmt;
3
3
use hashbrown::HashTable;
4
4
use pyo3::PyTraverseError;
5
5
use pyo3::PyVisit;
6
-
use pyo3::exceptions::PyKeyError;
6
+
use pyo3::exceptions::{PyAttributeError,PyKeyError};
7
7
use pyo3::intern;
8
8
use pyo3::prelude::*;
9
9
use pyo3::types::{PyDict,PyMapping,PyString};
@@ -202,6 +202,23 @@ pub fn mapping_get<'py>(
202
202
.map(|value| if value.is(undefined){None}else{Some(value)})
203
203
}
204
204
205
+
// TODO replace with `PyAnyMethods::getattr_opt` once https://github.com/PyO3/pyo3/pull/5985 is merged:
0 commit comments