HSY-999
HSY-999
hello, i would like to try to solve this. i think i may have a solution that is generic enough. i will open pull request when it is ready
hello. is this still a issue? i copyed the code to see if the error still existed. i wanted to know if this still considered unexpected behavior.
> Having or not the attribute was a way to detect if the object was manually created. If part of a PdfDocument the Indirect_Reference is None or an IndirectObject depending...
> * What happens to keyword-only arguments? it does not work in a small example, but inspect does support matching on keyword arguments in a different `list[str]` with `kwonlyargs`. an...
i made changes to the pull request based on feedback. i still need to implement automated test, as well as research renaming keys. i have converted the pull request to...
i have introduced changes based on feedback. i still need to think about a solution to the keys conflicting with python builtins.
i have implemented possible solution for renaming keyword args. @stefan6419846 it is available to review when you are ready. for the `set_alt_arg_name` function, you provide it keyword stored in `DictionaryObject`,...
i review some code in `_markup_annotation.py` and see classes (`Ellipse`, `Highlight`) which have separate `__init__` argument name and `DictionaryObject` name. i will edit if need to make classes works with...
```python d__ = cast( "DictionaryObject", self._reference_clone(self.__new__(self.__class__), pdf_dest, force_duplicate), ) ``` @stefan6419846 is there reason code uses `self.__class__()`, instead of `self.__new__(self.__class__)`? this change would fix the issues i think. very simple....
> ```python > d__ = cast( > "DictionaryObject", > self._reference_clone(self.__new__(self.__class__), pdf_dest, force_duplicate), > ) > ``` > > @stefan6419846 is there reason code uses `self.__class__()`, instead of `self.__new__(self.__class__)`? this change...