Skip to content

argparse.FileType is deprecated in Python 3.14 #591

@frenzymadness

Description

@frenzymadness

This now raises PendingDeprecationWarning:

"files", type=argparse.FileType("rb"), nargs="+", help="File(s) to be analysed"

and because of this setting for pytest:

filterwarnings = [
"error",
]

I think it will cause the test suite to fail with 3.14. I experienced this in Fedora Linux, where we are already preparing Python 3.14.

See this for more context: python/cpython#58032

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy