Skip to content

Can I ignore/stub "Unreplaced NamedType"? #1923

@SamuelMarks

Description

@SamuelMarks

I'm getting the same issue as this reporter from 2024 #1838

maxtext/MaxText/generate_distillation_data.py:67:1: error: in <module>: Couldn't import pyi for 'tqdm.asyncio' [pyi-error]
  Unreplaced NamedType: 'tqdm.std.tqdm', referenced from 'tqdm.asyncio'

Rather than wait for a fix to be applied, is there a way to just ignore types on this one line and any associated usage?

I tried:

from tqdm.asyncio import tqdm  # type: nothing
from tqdm.asyncio import tqdm  # type: pytype.nothing
from tqdm.asyncio import tqdm  # type: ignore

How do I make pytype just work™?

EDIT: I was able to get it to work with simply import tqdm.asyncio then later tqdm.asyncio.tqdm(… still curious how to resolve this issue if it recurs.

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