mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Fix deserialization of index response when requires_python
field is missing (#708)
Closes https://github.com/astral-sh/puffin/issues/707
This commit is contained in:
parent
4e437ba7e5
commit
665a59dae6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue