feat: update to nixos-25.05 (beta)
Iron out the issues before it releases.
This commit is contained in:
parent
bca776687f
commit
2410b3fe2a
5 changed files with 162 additions and 59 deletions
|
@ -7,10 +7,10 @@ import typing
|
|||
import click
|
||||
|
||||
|
||||
def expect[T](typ: type[T], value: object) -> T:
|
||||
if not isinstance(value, typ):
|
||||
def expect[T](type_: type[T], value: object) -> T:
|
||||
if not isinstance(value, type_):
|
||||
raise ValueError(
|
||||
f"expected value to be of type {typ} but was of type {type(value)}"
|
||||
f"expected value to be of type {type_} but was of type {type(value)}"
|
||||
)
|
||||
return value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue