chalkpy 2.93.6__py3-none-any.whl → 2.93.7__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.93.6"
1
+ __version__ = "2.93.7"
@@ -375,7 +375,7 @@ class LazyFramePlaceholder:
375
375
  raise ValueError("with_columns requires at least one column expression")
376
376
 
377
377
  for col in columns:
378
- if isinstance(col, tuple):
378
+ if isinstance(col, (list, tuple)):
379
379
  if len(col) != 2:
380
380
  raise ValueError(
381
381
  f"LazyFramePlaceholder.with_column(...) cannot be called with tuple having {len(col)} members - expect (name, expression) pairs only."
@@ -389,8 +389,12 @@ class LazyFramePlaceholder:
389
389
  raise ValueError(
390
390
  f"Positional with_columns expressions must use `.alias(...)` to set the column name, got expression '{col}' without any alias specified"
391
391
  )
392
+ elif isinstance(col, typing.Mapping): # pyright: ignore[reportUnnecessaryIsInstance]
393
+ entries.extend((k, v) for k, v in col.items()) # pyright: ignore
392
394
  else:
393
- entries.extend((k, v) for k, v in col) # pyright: ignore
395
+ raise ValueError(
396
+ f"LazyFramePlaceholder.with_columns cannot be called with column argument `{repr(col)}`"
397
+ )
394
398
 
395
399
  return LazyFramePlaceholder._construct(
396
400
  self_dataframe=self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chalkpy
3
- Version: 2.93.6
3
+ Version: 2.93.7
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=Vdt9eD9Ti4tDZVNL1Vl-uO72degh0W9biisVi0LtCa0,23
2
+ chalk/_version.py,sha256=dhRKIv2zUq6x8xflLPE2dsInFRTqWqvB0s27C4StTFo,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
@@ -604,7 +604,7 @@ chalk/config/_validator.py,sha256=QC1y52m704_bV_TYjq0sdZJ-km8iSkDX1V4sHgw4RJk,13
604
604
  chalk/config/auth_config.py,sha256=HAALkQrvDD0i7gaZK5iufS8vDDVbzLIpHLOpcJO1kmw,4498
605
605
  chalk/config/project_config.py,sha256=YHB3upvtBJu-tWfNOchBRSc9xGebDbrIpCVmKbBzJ8Q,7217
606
606
  chalk/df/ChalkDataFrameImpl.py,sha256=BRwnjQcie3gxaKhKau8HG17NWzS1zdr8SnNVurxF8QY,133
607
- chalk/df/LazyFramePlaceholder.py,sha256=sZD-CxfarNaGFykLamnqTyuC1iDLgSPUwKulae2KHPA,37453
607
+ chalk/df/LazyFramePlaceholder.py,sha256=4veohGgt6WvKdbE4Qn3qVobfsJsB1yDuWnIhCfq4How,37728
608
608
  chalk/df/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
609
609
  chalk/df/ast_parser.py,sha256=t-DwUxd2hN8LECRSBx85DIv9FtILgMiHyGyCTINfgQw,11199
610
610
  chalk/features/__init__.py,sha256=5doD7bFwRthzwdmizbRaPVHiCABiNpiOiAJVFlwqNnA,6943
@@ -795,8 +795,8 @@ chalk/utils/tracing.py,sha256=Glx8YrtjWy0zE5YbpgfgcsLDshAKnnYm9poiWNeCxXs,11075
795
795
  chalk/utils/weak_set_by_identity.py,sha256=VmikA_laYwFeOphCwXJIuyOIkrdlQe0bSzaXq7onoQw,953
796
796
  chalk/utils/pydanticutil/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
797
797
  chalk/utils/pydanticutil/pydantic_compat.py,sha256=O575lLYJ5GvZC4HMzR9yATxf9XwjC6NrDUXbNwZidlE,3031
798
- chalkpy-2.93.6.dist-info/METADATA,sha256=IYIRleFEc1xOZ7mgFtTsF7No_j_HbVHHulex5tHrH-0,27494
799
- chalkpy-2.93.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
800
- chalkpy-2.93.6.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
801
- chalkpy-2.93.6.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
802
- chalkpy-2.93.6.dist-info/RECORD,,
798
+ chalkpy-2.93.7.dist-info/METADATA,sha256=Uh4WHtrop4ydmzZR9uN5Cr4uQMad-JTFwSQ1IOy9BJs,27494
799
+ chalkpy-2.93.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
800
+ chalkpy-2.93.7.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
801
+ chalkpy-2.93.7.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
802
+ chalkpy-2.93.7.dist-info/RECORD,,