Skip to content

Conversation

@jkhsjdhjs
Copy link

No description provided.

`AbstractSupplementaryFileContainer` and
`DictSupplementaryFileContainer` are extended by a `delete_file()`
method, that allows deleting files from them. Since different files may
have the same content, references to the files contents in
`DictSupplementaryFileContainer._store` are tracked via
`_store_refcount`. A files contents are only deleted from `_store`, if
all filenames referring to these these contents are deleted, i.e. if the
refcount reaches 0.
…around

Since `PyECMA376-2` doesn't have a documentation we can link to, we
ignore missing reference warnings caused by this problem. The
visibility of this workaround is improved by making it a `TODO` instead
of a regular comment. Furthermore, it now links to the corresponding
issue.
Now that we require `lxml-stubs`, we can remove the `type: ignore`
coments from the `lxml` imports. To make mypy happy, many typehints are
adjusted, mostly `etree.Element` -> `etree._Element`.
Now that we use `etree._Element` instead of `etree.Element` in our
docstrings and type annotations, we don't need this workaround anymore.
@s-heppner s-heppner merged commit b0e1148 into feature/http_api Jun 20, 2024
@s-heppner s-heppner deleted the merge/main_in_feature_http_api branch June 20, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants