You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When users add an enum or class field named True or None we run into issues in python that are very hard for the user to debug due to reserved word usage.
To address this we should instead preemptively detect this in our static analyzer.
The text was updated successfully, but these errors were encountered:
To detect reserved keywords in specific generator languages, extend the assert_is_not_a_reserved_scalar_type function in /engine/baml-lib/parser-database/src/names/mod.rs to include checks for reserved keywords in Python (e.g., True, None).
When users add an enum or class field named
True
orNone
we run into issues in python that are very hard for the user to debug due to reserved word usage.To address this we should instead preemptively detect this in our static analyzer.
The text was updated successfully, but these errors were encountered: