lxml-stubs icon indicating copy to clipboard operation
lxml-stubs copied to clipboard

Resolver.resolve_filename() missing

Open trevor87 opened this issue 4 years ago • 0 comments

class Resolver is missing the method resolve_filename().

As I am unsure, how to correctly type filename, I did not submit a PR. Instead, here is my current workaround:

In etree.pyi I added the following to class Resolver:

    def resolve_filename(
        self, filename: Any, context: Any)
    ): ...

Edit: Also, there is a return type. The documentation says "Return the name of a parsable file as input document." Does this mean that return type would be str?

trevor87 avatar Aug 10 '21 08:08 trevor87