- Issue created by @gapple
- 🇨🇦Canada gapple
Enumable things
- Directives (default-src, script-src)
- Directive Schemas (source-list, ancestor-source-list, token-list)
- Keywords ('self', 'none')Function type hints may cause some problems, where they're currently typehinted to
string
, and would need to change tostring|enum
.
2.x could accept both where possible, and translate to strings where necessary. 3.x can widen type hints tostring|enum
, 4.x could narrow them toenum
where appropriate.