Kurt McKee
Kurt McKee
Another gentle ping. I'm encountering this while migrating the feedparser test suite to pytest. It's possible to overcome this by using an explicit `ids=` parameter but it is unexpected to...
@RonnyPfannschmidt, that would solve my use case. Do you want a new PR that accomplishes that?
> i wonder if it would make sense to use content hashes That may be helpful, if uniqueness is a requirement (or even just desirable). My use case involves multiplying...
@obestwalter I can give it a shot! To confirm, the strategy here is: 1. Detect long IDs (cross-platform for consistency) 2. Hash the IDs to avoid platform-specific length restrictions 3....
Not a fan of Copilot. I'll see what I can do to address those concerns, but it's going to take a bit because life is busy currently!
@anishathalye I've addressed the cases you suggested. In addition, I attempted to make the complex warning-message-handling logic clearer by rearranging and regrouping the conditions. It may be easier to read...
You're running `pytest`, not `tox` to invoke the test suite. Run `tox` to set up and execute the test suite environment in a supported way. @anishathalye This ticket can be...
@anishathalye I was able to reproduce locally before applying the fix, and then saw that the failures were resolved with the fix. For some unknown reason, the presence of pytest-randomly...
@luckydonald Code similar to this may do what you want. ```python import json import pathlib from openapi_spec_validator import validate schema = json.loads(pathlib.Path("your-file.json").read_text()) validate(schema) ``` @p1c2u I recommend closing this issue....
@ahmed4end You can subclass `SimpleEval` and write a custom `._eval()` function: ```python import simpleeval class MyEvaluator(simpleeval.SimpleEval): def _eval(self, node): if CONDITION: ... # do something return super()._eval(node) print(MyEvaluator(operators=..., functions=..., names=...).eval())...