Skip to content

Missing template in stubs (pyi) #247

Closed
@tdivis

Description

@tdivis

As I upgraded to a newer version of python-xmlsec, mypy in my project started to report errors:

error: Module has no attribute "template"  [attr-defined]

My code is working and looks like:

import xmlsec
...
xmlsec.template.add_x509_data(key_info)

I figured it's since ceaea9c as the line from xmlsec import constants, template, tree was removed from src/xmlsec/__init__.pyi and only constants and tree was returned in different forms of import, but template seems to be forgotten.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions