Skip to content

False positives for py/file-not-closed even when using with statements #20152

@akrherz

Description

@akrherz

Within the past 24 hours or so, CodeQL has generated a large number of false positives within my various python repos for py/file-not-closed . In each case, I am already using a with statement. For example:

akrherz/pyIEM/security/code-scanning/587

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions