I have attached cygcheck.out.  Following are some details, to
elaborate upon the subject line.

Contents of the file junk_ano.py:

# begin code listing

def greeting(name: str) -> str:
    return 'Hello ' + name

if __name__ == "__main__":
    greeting('Bob', 'Eve')
    greeting(3)
    greeting(b'Alice')

# end code listing

Output when running in a DOS (cmd) window is what I expected:

C:\bjk\tmp>mypy junk_ano.py
junk_ano.py:5: error: Too many arguments for "greeting"
junk_ano.py:6: error: Argument 1 to "greeting" has incompatible type
"int"; expected "str"
junk_ano.py:7: error: Argument 1 to "greeting" has incompatible type
"bytes"; expected "str"
Found 3 errors in 1 file (checked 1 source file)

When I run the same command on the same file in a Cygwin terminal
window, there is no output. (Same lack of results if I use the -v or
--strict flags.) There is a noticeable span of time (~0.5 sec) before
the next command prompt appears, so it seems to me like something is
being run in response to the command.

On a probably related note, running in DOS window causes creation of a
directory named .mypy_cache. No such directory is created when running
in a Cygwin terminal.

Anyone got any ideas? Thanks in advance.

P.S. Running on Win10, Python 3.9.6 as downloaded from python.org (for
Windows). Version of mypy: 0.931, obtained via python -m pip install
mypy.

Attachment: cygcheck.out
Description: Binary data

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to