mirror of https://github.com/astral-sh/uv
Fix deserialization of index response when `requires_python` field is missing
This commit is contained in:
parent
2497b88ead
commit
a22aba06da
|
|
@ -23,7 +23,7 @@ pub struct File {
|
|||
pub hashes: Hashes,
|
||||
/// Note: Deserialized with [`LenientVersionSpecifiers`] since there are a number of invalid
|
||||
/// versions on pypi
|
||||
#[serde(deserialize_with = "deserialize_version_specifiers_lenient")]
|
||||
#[serde(default, deserialize_with = "deserialize_version_specifiers_lenient")]
|
||||
pub requires_python: Option<VersionSpecifiers>,
|
||||
pub size: Option<usize>,
|
||||
pub upload_time: Option<DateTime<Utc>>,
|
||||
|
|
|
|||
Loading…
Reference in New Issue