etils
etils copied to clipboard
Collection of eclectic utils for python.
Format visu3d using black/midnight
Internal change.
Internal change.
Move FewShotEvaluator to contrib
…: 'PosixGPath' and 'str' ``` [ins] In [30]: import tensorflow_datasets as tfds ...: ...: import tensorflow_text as tf_text PARTS: PosixPath('/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/tensorflow_datasets') PARTS: PosixGPath('/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/tensorflow_datasets') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell...
Via GCloud Console I clicked "CREATE FOLDER" to create `empty_folder`. Then I did: ```python $ touch /tmp/test.txt $ gsutil cp /tmp/test.txt gs://henning-test/folder/test.txt $ python Python 3.10.12 (main, Nov 20 2023,...
Attempt to fix XManager cli
I think the general consensus in Python is that mutable types should not be hashable; however unfrozen dataclasses are hashable. See code below: ```python import dataclasses from etils import edc...
Validate the dataclass is frozen when allow_unfrozen=True (Fix #406)
```python import dataclasses from etils import edc @edc.dataclass(allow_unfrozen=True) @dataclasses.dataclass(eq=True, kw_only=True) class Conf: x: int = 3 a = Conf() a.x = 2 # verify that a is not frozen a.frozen()...