Skip to content

[0.6.1]

Compare
Choose a tag to compare
@iwpnd iwpnd released this 24 Jan 17:44
· 491 commits to main since this release

Fixed a minor issue that would not allow Generic types to be used in Pyle38 responses.

from pyle38.responses import ObjectsResponse
from pydantic import BaseModel

class Vehicle(BaseModel):
    id: str

vehicles: ObjectsResponse[Vehicle] = await tile38.scan("fleet").asObjects()

# no longer raises
# Type "Vehicle" cannot be assigned to type variable "T@ObjectResponse"    
# Type "Vehicle" is incompatible with bound type 
# "Dict[Unknown, Unknown] | str"

v0.6.1 (2022-01-24)

Fix

  • 🐛 generic types and defaults (45fcd5d)