Docs: Update Snippets to Modern Type Hints (#4987)

This commit is contained in:
Nicholas Saylor
2025-05-22 15:00:30 -04:00
committed by GitHub
parent 62694b1ce7
commit 653ee2b625
3 changed files with 18 additions and 19 deletions

View File

@@ -333,7 +333,7 @@ within the world.
### TextChoice
Like choice allows you to predetermine options and has all of the same comparison methods and handling. Also accepts any
user defined string as a valid option, so will either need to be validated by adding a validation step to the option
class or within world, if necessary. Value for this class is `Union[str, int]` so if you need the value at a specified
class or within world, if necessary. Value for this class is `str | int` so if you need the value at a specified
point, `self.options.my_option.current_key` will always return a string.
### PlandoBosses