Here is an example with pygame (Types do not get inferred):
import pygame
pygame.display.set_mode((size))
Types do get inferred:
from pygame import display
display.set_mode((size))
Well, this library throws an error when importing single modules and using pygame.init(). Is there another way to use the first example and type the modules afterwards?