10000 Mypy ignores typing.no_type_check for nested function redefintions. · Issue #10002 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
Mypy ignores typing.no_type_check for nested function redefintions. #10002
Open
@bharel

Description

@bharel

Bug Report

Mypy ignores no_type_check, specifically for nested function redefinitions.

image

To Reproduce

  1. Create a nested function.
  2. Create another nested function in the same name right after it.
  3. Attempt to suppress it with @typing.no_type_check.

I've tried to deal with it in many ways, including opening a different bug, to no avail.

Your Environment

  • Mypy version used: 0.800
  • Mypy command-line flags: --disallow-untyped-defs, --show-column-numbers, --follow-imports=silent, --ignore-missing-imports, --check-untyped-defs
  • Mypy configuration options from mypy.ini (and other config files): Nope
  • Python version used: 3.9.0
  • Operating system and version: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0