[0.6.1]
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
)