Skip to content

Pylance type checking complains about structured logging on the standard logger #40

@markledwich2

Description

@markledwich2

Pylance now reports problems that each of the parameters do not exist

log.info('hello {name}',  name='Mark')

Error shown: No parameter named "name" (Pylance reportGeneralTypeIssues)

I asked them and they said that I should use a seq specific log function from seqlog instead of the standard one. What would be your recommended way to use seqlog and also have pylances type checking enabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions