The project documentation outlines for Customer Parameter Types that use_for_snippets "Defaults to true" and that prefer_for_regexp_match "Defaults to false".
Although this aligns with the documented Python example, its implementation is missing default values for those keyword arguments:
The appropriate defaults have been added to the ParameterType class.
Two versions of Python type hints in the module defining that class have been reduced to one e.g. typing.List and list (through__future__.annotations).
⚡️ What's your motivation?
Fix a bug where default keyword arguments were not set for customer parameter types in Python
Remove invalid documentation that alternatives can not be escaped
🏷️ What kind of change is this?
:bug: Bug fix (non-breaking change which fixes a defect)
♻️ Anything particular you want feedback on?
Whether small correction to alternatives in README.md is appropriate.
🤔 What's changed?
The project documentation outlines for Customer Parameter Types that
use_for_snippets
"Defaults totrue
" and thatprefer_for_regexp_match
"Defaults tofalse
".Although this aligns with the documented Python example, its implementation is missing default values for those keyword arguments:
With this PR:
ParameterType
class.typing.List
andlist
(through__future__.annotations
).⚡️ What's your motivation?
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
Whether small correction to alternatives in README.md is appropriate.
📋 Checklist: