We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I created a subclass of the Range type as follows:
from asyncpg.types import Range as Rg class Range(Rg): def issubset(self, other): return self._lower >= other._lower and self._upper <= other._upper def issuperset(self, other): return self._upper >= other._upper and self._lower <= other._lower def size(self): return self._upper - self._lower
Would it be possible to have this subclass used automatically instead of the default type?
Both set_type_codec and set_builtin_type_codec don't seem to be able to do it.
set_type_codec
set_builtin_type_codec
The text was updated successfully, but these errors were encountered:
These methods seem useful enough to be included in the default implementation. Feel free to submit a PR to include them.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I created a subclass of the Range type as follows:
Would it be possible to have this subclass used automatically instead of the default type?
Both
set_type_codec
andset_builtin_type_codec
don't seem to be able to do it.The text was updated successfully, but these errors were encountered: