Files
UnrealEngineUWP/Engine/Plugins/Experimental/PythonScriptPlugin/Source
Patrick Laflamme ec3db1b24c Implemented Python Type Hinting when generating the Python stub.
- The 'Off' mode turns type hinting off and produce the Python stub as before.
  - The 'Auto-Completion' mode aims to provide types in Python IDE auto-completion while leaving out some information/complexity that clutter the function definition.
  - The 'Type Checker' mode aims to provide the closest to the truth (with some limitations) of the supported API types. Type coercion makes it harder to see the exact types.

Known limitations:
  - We don't know when a reflected UObject can legally be None. In 'Type Checker' mode, the UObject are always marked as typing.Optional[] everywhere to denotate that they can be None. Obviously, some methods never returns None and some method will fails if an Object is None. It might be annoying to users in some case.

#jira UE-119557 - Consider adding type hinting support to the unreal.py stub file
#rb Jamie.Dale
#preflight 628cf27f7778f10598b1e56d

[CL 20349869 by Patrick Laflamme in ue5-main branch]
2022-05-24 12:10:54 -04:00
..