Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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