Compare commits

..

1 Commits

Author SHA1 Message Date
532fbb352c float
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2024-03-03 15:53:35 -08:00
4 changed files with 863 additions and 863 deletions

View File

@ -1031,7 +1031,7 @@ def generateType(path: str, name: str, schema: dict, data: dict):
elif type_name == "integer":
generateIntegerType(file_path, name, schema, type_name)
elif type_name == "number":
generateIntegerType(file_path, name, schema, type_name)
generateFloatType(file_path, name, schema, type_name)
elif type_name == "string":
generateStringType(file_path, name, schema, type_name)
else:

File diff suppressed because it is too large Load Diff

View File

@ -4,14 +4,14 @@ from pydantic import GetCoreSchemaHandler
from pydantic_core import CoreSchema, core_schema
class LengthUnit(int):
class LengthUnit(float):
""""""
def __int__(self) -> int:
def __float__(self) -> float:
return self
@classmethod
def __get_pydantic_core_schema__(
cls, source_type: Any, handler: GetCoreSchemaHandler
) -> CoreSchema:
return core_schema.no_info_after_validator_function(cls, handler(int))
return core_schema.no_info_after_validator_function(cls, handler(float))

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "kittycad"
version = "0.6.6"
version = "0.6.7"
description = "A client library for accessing KittyCAD"
authors = []