Skip to content

Commit 54daab7

Browse files
authored
fix stubtest issue post-merge (#711)
1 parent a55bd2e commit 54daab7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ jobs:
194194
if: steps.cache-py.outputs.cache-hit != 'true'
195195

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

199198
- run: pip freeze
200199

python/pydantic_core/_pydantic_core.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Some(Generic[_T]):
5151
@property
5252
def value(self) -> _T: ...
5353
@classmethod
54-
def __class_getitem__(cls, item: Any) -> Type[Self]: ...
54+
def __class_getitem__(cls, item: Any, /) -> Type[Self]: ...
5555

5656
@final
5757
class SchemaValidator:

src/validators/float.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ impl Validator for FloatValidator {
7373
let float: f64 = either_float.try_into()?;
7474
if !self.allow_inf_nan && !float.is_finite() {
7575
return Err(ValError::new(ErrorType::FiniteNumber, input));
76-
} else {
77-
Ok(float.into_py(py))
7876
}
77+
Ok(float.into_py(py))
7978
}
8079

8180
fn different_strict_behavior(

0 commit comments

Comments
 (0)