Skip to content
Snippets Groups Projects
Commit 12c4d33b authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: type hints

parent 26ae33d0
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!20created draft for generic analysis method
Pipeline #17052 passed
......@@ -9,9 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ###
- `check_reference_field` function to check whether entities with provided ids
exits (for example when importing data from a table)
- added the `datatypes` argument to `TableImporter` for columns that do not
- added the `datatypes` argument to `TableImporter` for columns that do not
need a special conversion function
- `generic_analysis.py` allows to easily call scripts to perform analyses in
- `generic_analysis.py` allows to easily call scripts to perform analyses in
server side scripting
### Changed ###
......
......@@ -62,7 +62,7 @@ logger = logging.getLogger(__name__)
guard.set_level(level=UPDATE)
def send_mail(changes, receipient):
def send_mail(changes: [db.Entity], receipient: str):
""" calls sendmail in order to send a mail to the curator about pending
changes
......
......@@ -130,7 +130,7 @@ def check_referenced_script(record: db.Record):
return script_name
def call_script(script_name, record_id):
def call_script(script_name: str, record_id: int):
ret = run_server_side_script(script_name, record_id)
if ret.code != 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment