Pylint import-error and autocomplete in vs code dev container

I’m new to Home Assistant development, I’ve created two simple integration so far.
Now I’m trying to understand the core a bit more and want to create more complex things.

I’m using Windows 10. VS Code and Dev Container as my dev environment.
Everything works fine. I add my new integration via scaffold script, add the requirements to manifest.json but every time I try to use one of the requirements in code I get errors.
I must add # pylint: disable=import-error. But why?
For example, modify __init__ or rpi_gpio and remove that comment.
After running script/lint I get these errors:

************* Module homeassistant.components.rpi_gpio
homeassistant/components/rpi_gpio/__init__.py:18:8: E1101: Module 'RPi.GPIO' has no 'cleanup' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:25:4: E1101: Module 'RPi.GPIO' has no 'setmode' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:25:17: E1101: Module 'RPi.GPIO' has no 'BCM' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:31:4: E1101: Module 'RPi.GPIO' has no 'setup' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:31:21: E1101: Module 'RPi.GPIO' has no 'OUT' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:36:4: E1101: Module 'RPi.GPIO' has no 'setup' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:36:21: E1101: Module 'RPi.GPIO' has no 'IN' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:36:30: E1101: Module 'RPi.GPIO' has no 'PUD_DOWN' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:36:72: E1101: Module 'RPi.GPIO' has no 'PUD_UP' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:41:4: E1101: Module 'RPi.GPIO' has no 'output' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:46:11: E1101: Module 'RPi.GPIO' has no 'input' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:51:4: E1101: Module 'RPi.GPIO' has no 'add_event_detect' member (no-member)
homeassistant/components/rpi_gpio/__init__.py:51:32: E1101: Module 'RPi.GPIO' has no 'BOTH' member (no-member)

The code (integration) works fine, but the dev environment shows errors.
In mcp23017 integration I see these errors:

Is there a way to avoid those comments and errors in pylint? There are about 60 places in the codebase that use this comment. I try to understand why it is needed and can it be avoided in some way.
Also a proper autocomplete would be great. Now I’m writing code by hand even I’m using VS COde.