Generate an error if trying to use @final with TypedDict (#7865)
Fixes #7849
This fix modifies function `analyze_class` in `mypy/semanal.py`, if the analyzer identifies a `TypedDict`, it then traverses all decorators and checks if `@final` exists, and if so, generates an error.