Fix required and optional keys inheritance for TypedDict (#700) (For a complete description of the issue see https://github.com/python/typing/pull/700.)