Repository navigation
Tags
Tags
chore(plugins/box): use Optional[type] for py3.9 compatibility (#279) Replace PEP 604 ``type | None`` unions on the module-level ``Client`` and ``JWTAuth`` placeholders with ``Optional[type]``. PEP 604 union syntax only evaluates at runtime on Python 3.10+, so today's form only works because ``from __future__ import annotations`` stringifies all annotations at import time. Removing that future-import — or any caller running ``typing.get_type_hints()`` on this module — would raise ``TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'`` on Python 3.9, which is still a supported target (``python = ">=3.9,<3.13"`` in pyproject.toml, ``target-version = ['py39', 'py310']`` in black). ``Optional[type]`` works unconditionally on every supported version. Purely defensive: no behavior change, no test surface impact. The Box plugin still lazy-loads ``boxsdk`` via ``_ensure_boxsdk()`` and retains its helpful ImportError hint when the extra is missing.
Task injection fix run time issue with tasktype support (#269) * chnages for task injection * address PR comments * fix lint errors * fix lint errors for 3.9 * refer to constant for env variable * add test cases * changes for workflow specific task injection * chnages for lint errors * changes for lint errors * chnages for run time * changes for checks * changes for linter errors * changes for linter errors * changes for linter errors * changes for linter errors * changes for linter errors * changes for constants --------- Co-authored-by: Kalyan Inampudi <Kalyan.Inampudi@nike.com>
Add workflow-specific task injection config files support (#265) * chnages for task injection * address PR comments * fix lint errors * fix lint errors for 3.9 * refer to constant for env variable * add test cases * changes for workflow specific task injection * chnages for lint errors * changes for lint errors --------- Co-authored-by: Kalyan Inampudi <Kalyan.Inampudi@nike.com>
PreviousNext