mirror of https://github.com/astral-sh/ruff
fixup
This commit is contained in:
parent
2e2a668b30
commit
62abd204d1
|
|
@ -38,7 +38,7 @@ class Product(BaseModel):
|
|||
name: str = Field(..., kw_only=False, min_length=1)
|
||||
internal_price_cent: int = Field(..., gt=0, alias="price_cent")
|
||||
|
||||
reveal_type(Product.__init__) # revealed: (self: Product, name: str = Any, *, price_cent: int = Any) -> None
|
||||
reveal_type(Product.__init__) # revealed: (self: Product, name: str = ..., *, price_cent: int = ...) -> None
|
||||
|
||||
product = Product("Laptop", price_cent=999_00)
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class User:
|
|||
id: int
|
||||
role: str = strawberry.field(default="user")
|
||||
|
||||
reveal_type(User.__init__) # revealed: (self: User, *, id: int, role: str = Any) -> None
|
||||
reveal_type(User.__init__) # revealed: (self: User, *, id: int, role: str = ...) -> None
|
||||
|
||||
user = User(id=1)
|
||||
reveal_type(user.id) # revealed: int
|
||||
|
|
|
|||
Loading…
Reference in New Issue