chalkpy 2.92.6__py3-none-any.whl → 2.92.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
chalk/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.92.6"
1
+ __version__ = "2.92.8"
@@ -50,6 +50,7 @@ from chalk.features._encoding.pyarrow import (
50
50
  rich_to_pyarrow,
51
51
  )
52
52
  from chalk.features._encoding.rich import structure_primitive_to_rich, unstructure_rich_to_primitive
53
+ from chalk.features.feature_wrapper import UnresolvedFeature
53
54
  from chalk.utils.collections import unwrap_annotated_if_needed, unwrap_optional_and_annotated_if_needed
54
55
  from chalk.utils.df_utils import pa_array_to_pl_series
55
56
  from chalk.utils.json import JSON, TJSON, is_pyarrow_json_type, pyarrow_json_type
@@ -1234,8 +1235,14 @@ class FeatureConverter(PrimitiveFeatureConverter[_TPrim], Generic[_TPrim, _TRich
1234
1235
  # because it is also used for error handling inside of `from_rich_to_primitive`.
1235
1236
  self._name = name
1236
1237
  if rich_default != ...:
1237
- # The missing value strategy doesn't really matter because rich_default is not missing
1238
- primitive_default = self.from_rich_to_primitive(rich_default, missing_value_strategy="allow")
1238
+ # In notebook environments, UnresolvedFeature may be used as a placeholder
1239
+ # for features that can't be resolved due to a stale registry.
1240
+ # Treat these as missing defaults since they're not concrete values.
1241
+ if isinstance(rich_default, UnresolvedFeature):
1242
+ rich_default = ...
1243
+ else:
1244
+ # The missing value strategy doesn't really matter because rich_default is not missing
1245
+ primitive_default = self.from_rich_to_primitive(rich_default, missing_value_strategy="allow")
1239
1246
  super().__init__(
1240
1247
  name, is_nullable=is_nullable, pyarrow_dtype=pyarrow_dtype, primitive_default=primitive_default
1241
1248
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chalkpy
3
- Version: 2.92.6
3
+ Version: 2.92.8
4
4
  Summary: Python SDK for Chalk
5
5
  Author: Chalk AI, Inc.
6
6
  Project-URL: Homepage, https://chalk.ai
@@ -1,5 +1,5 @@
1
1
  chalk/__init__.py,sha256=9YxwkAt3Im0OCMfpmnIB_4PKjZfBCcRmwATLXdHNRm4,2609
2
- chalk/_version.py,sha256=RJvjXxhaQYUqSVBwMb5cH-lu2h5DuKo-5vxr617uxiU,23
2
+ chalk/_version.py,sha256=8vxRTHPpEeGfGlkmd1ApP86vOYkqJ0hPcGm34nXpvdc,23
3
3
  chalk/cli.py,sha256=ckqqfOI-A2mT23-rnZzDMmblYj-2x1VBX8ebHlIEn9A,5873
4
4
  chalk/importer.py,sha256=hCEo7eqSfXZWklkFB2geeipGhiD0qNjPBpQJvOBW6N0,63083
5
5
  chalk/prompts.py,sha256=2H9UomLAamdfRTNUdKs9i3VTpiossuyRhntqsAXUhhg,16117
@@ -610,7 +610,7 @@ chalk/features/_embedding/sentence_transformer.py,sha256=hNYuT9D-16C49lkhIVK_KXZ
610
610
  chalk/features/_embedding/utils.py,sha256=gUYUJCt-9XLeioC3QYg42yc5f69ywAr_w_Q-xoF3o54,877
611
611
  chalk/features/_embedding/vertexai.py,sha256=PUaMmd7qbK9vXrlce_8BQHg_OM9L982k6LuyM_PU-5w,5362
612
612
  chalk/features/_encoding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
613
- chalk/features/_encoding/converter.py,sha256=zqdbilY1kMXX5-izsQuAk-CpSBOjpWpKBKCyI4S5D-I,64967
613
+ chalk/features/_encoding/converter.py,sha256=Emb48g_d0njx0Ix5-IcoByBaS__E6aNTmLBOdK-88TY,65392
614
614
  chalk/features/_encoding/http.py,sha256=MVmkgv90O4sOnImc-FrRPVwYR2U7zOGduNkHO4umoe4,2227
615
615
  chalk/features/_encoding/inputs.py,sha256=4K4kOCAl0MuobAC_lVJE70toQVrPt2ZlzrlwYALuLHE,10151
616
616
  chalk/features/_encoding/json.py,sha256=lHSBWIjNKMDmt_AmiFtf4ZsW5QPIEC6r7NvDW0IdqPI,13804
@@ -764,8 +764,8 @@ chalk/utils/tracing.py,sha256=Glx8YrtjWy0zE5YbpgfgcsLDshAKnnYm9poiWNeCxXs,11075
764
764
  chalk/utils/weak_set_by_identity.py,sha256=VmikA_laYwFeOphCwXJIuyOIkrdlQe0bSzaXq7onoQw,953
765
765
  chalk/utils/pydanticutil/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
766
766
  chalk/utils/pydanticutil/pydantic_compat.py,sha256=O575lLYJ5GvZC4HMzR9yATxf9XwjC6NrDUXbNwZidlE,3031
767
- chalkpy-2.92.6.dist-info/METADATA,sha256=FJrd9Qhh5Ky0T7Cj_lBUkXEnzmlTakph7ozMwzxKnAY,27494
768
- chalkpy-2.92.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
769
- chalkpy-2.92.6.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
770
- chalkpy-2.92.6.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
771
- chalkpy-2.92.6.dist-info/RECORD,,
767
+ chalkpy-2.92.8.dist-info/METADATA,sha256=5EuFtQmLC5uXCQ4eEBC773NN4FIvxP9aEBAPZkXepPU,27494
768
+ chalkpy-2.92.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
769
+ chalkpy-2.92.8.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
770
+ chalkpy-2.92.8.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
771
+ chalkpy-2.92.8.dist-info/RECORD,,