$ python
Python 3.10.12 (main, Jul 5 2023, 15:02:25) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from zeno import DistillReturn, MetricReturn, ZenoOptions, distill, metric
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/gneubig/anaconda3/envs/zeno_clean/lib/python3.10/site-packages/zeno/__init__.py", line 1, in <module>
from zeno.api import (
File "/Users/gneubig/anaconda3/envs/zeno_clean/lib/python3.10/site-packages/zeno/api.py", line 38, in <module>
class ZenoParameters(BaseModel):
File "/Users/gneubig/anaconda3/envs/zeno_clean/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 98, in __new__
private_attributes = inspect_namespace(
File "/Users/gneubig/anaconda3/envs/zeno_clean/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 347, in inspect_namespace
raise PydanticUserError(
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `calculate_histogram_metrics = True`. All model fields require a type annotation; if `calculate_histogram_metrics` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.
For further information visit https://errors.pydantic.dev/2.1.1/u/model-field-missing-annotation
I'm getting an error regarding pydantic on a clean install of zeno. Reproduction method:
Result: