Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Python Lambda does not support multi-type hinting #200

Closed
alexiswl opened this issue Nov 26, 2023 · 0 comments · Fixed by #201 or #203
Closed

Python Lambda does not support multi-type hinting #200

alexiswl opened this issue Nov 26, 2023 · 0 comments · Fixed by #201 or #203

Comments

@alexiswl
Copy link
Member

[ERROR] TypeError: unsupported operand type(s) for |: 'type' and 'type'
Traceback (most recent call last):
  File "/var/lang/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/var/task/lambda_code.py", line 293, in <module>
    def submit_library_to_pieriandx(subject_id: str, library_id: str, workflow_run_id: str, lambda_arn: str, panel_type: str, sample_type: str, is_identified: Union[bool | str], default_snomed_term: str):
alexiswl added a commit that referenced this issue Nov 26, 2023
is_identified is always a string for lims deployment

Resolves #200
alexiswl added a commit that referenced this issue Nov 26, 2023
## PRs

#201
#202

## Bugs

#200

Also moved NaT error into module changelog
@alexiswl alexiswl linked a pull request Nov 26, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant