Skip to content

Commit

Permalink
fix: imports annotations from __future__
Browse files Browse the repository at this point in the history
Resolves type errors in python 3.8

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Apr 29, 2024
1 parent a347c4d commit 0ef3606
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trestlebot/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

"""GitHub related functions for the Trestle Bot."""

from __future__ import annotations

import os
import re
from typing import Optional, Tuple
Expand Down
2 changes: 2 additions & 0 deletions trestlebot/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

"""GitLab related functions for the Trestle Bot."""

from __future__ import annotations

import os
import re
import time
Expand Down
2 changes: 2 additions & 0 deletions trestlebot/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

"""Base Git Provider class for the Trestle Bot."""

from __future__ import annotations

import re
from abc import ABC, abstractmethod
from typing import Optional, Tuple
Expand Down

0 comments on commit 0ef3606

Please sign in to comment.