Skip to content

Pytype won't accept a single file without .py extension as input #1415

@redat00

Description

@redat00

Hello !

I'm working on a small script. This script, as it is an executable, does not have a .py extension, and is not in a directory. It's the file called s3.

.
├── COPYING
├── poetry.lock
├── pyproject.toml
├── README.md
└── s3

I wan't to run pytype on it, but I'm not able to since I have this error message :

# poetry run pytype s3
usage: pytype [options] input [input ...]
pytype: error: Need an input.

However, if I just rename the file from s3 to s3.py I don't have this problem anymore.
Is it something that should occur, or is there something I'm missing ?

Thanks in advance for any help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcat: infrastructuresupported platforms, dependency detection, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions