Skip to content

Commit

Permalink
SDEV-4431 - python3.9 types compatibility - use from __future__ impor…
Browse files Browse the repository at this point in the history
…t annotations for typing.
  • Loading branch information
dustinbleile committed Jul 23, 2024
1 parent a2b00e8 commit ba62186
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pori_python/graphkb/genes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Methods for retrieving gene annotation lists from GraphKB."""

from __future__ import annotations

from typing import Any, Dict, List, Sequence, Set, Tuple, cast

from pori_python.types import IprGene, Ontology, Record, Statement, Variant
Expand Down
2 changes: 2 additions & 0 deletions pori_python/ipr/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
handles annotating variants with annotation information from graphkb
"""

from __future__ import annotations

from requests.exceptions import HTTPError

from pandas import isnull
Expand Down
2 changes: 2 additions & 0 deletions pori_python/ipr/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Read/Validate the variant input files
"""

from __future__ import annotations

import json
import jsonschema
import os
Expand Down
2 changes: 2 additions & 0 deletions pori_python/ipr/ipr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
by other reporting systems
"""

from __future__ import annotations

from typing import Dict, Iterable, List, Sequence, Set, Tuple, cast

from pori_python.graphkb import GraphKBConnection
Expand Down
2 changes: 2 additions & 0 deletions pori_python/ipr/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import argparse
import datetime
import json
Expand Down
2 changes: 2 additions & 0 deletions pori_python/ipr/summary.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import base64
import json
from typing import Callable, Dict, List, Sequence, Set, Tuple, cast
Expand Down
2 changes: 2 additions & 0 deletions pori_python/ipr/therapeutic_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
upload variant and report information to IPR
"""

from __future__ import annotations

import pandas
from typing import Any, Dict, List, Sequence

Expand Down

0 comments on commit ba62186

Please sign in to comment.