Skip to content

Commit

Permalink
fix stubtest issue post-merge (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt authored Jun 28, 2023
1 parent a55bd2e commit 54daab7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ jobs:
if: steps.cache-py.outputs.cache-hit != 'true'

- run: pip install .
if: steps.cache-py.outputs.cache-hit != 'true'

- run: pip freeze

Expand Down
2 changes: 1 addition & 1 deletion python/pydantic_core/_pydantic_core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Some(Generic[_T]):
@property
def value(self) -> _T: ...
@classmethod
def __class_getitem__(cls, item: Any) -> Type[Self]: ...
def __class_getitem__(cls, item: Any, /) -> Type[Self]: ...

@final
class SchemaValidator:
Expand Down
3 changes: 1 addition & 2 deletions src/validators/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ impl Validator for FloatValidator {
let float: f64 = either_float.try_into()?;
if !self.allow_inf_nan && !float.is_finite() {
return Err(ValError::new(ErrorType::FiniteNumber, input));
} else {
Ok(float.into_py(py))
}
Ok(float.into_py(py))
}

fn different_strict_behavior(
Expand Down

0 comments on commit 54daab7

Please sign in to comment.