The transformers module exposes classes like AutoTokenizer at the top level using dynamic imports (via init.py). Static analyzers like Pylance sometimes can't detect this, especially after installing extensions like adapter-transformers that modify or extend internal modules. The addition of adapter-transformers may have introduced more indirection, increasing the chance of false positives.you can safely ignore the warning globally disable the warning using json file