Skip to content

Commit

Permalink
Moved to Optional[] type hint as | unions are not supported in python…
Browse files Browse the repository at this point in the history
… 3.8.
  • Loading branch information
WyvernIXTL committed May 8, 2024
1 parent 846e74a commit 0705ddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installation_instruction/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Optional
import re
from jinja2 import Environment, Template


def _get_error_message_from_string(string: str) -> str|None:
def _get_error_message_from_string(string: str) -> Optional[str]:
"""
Parses via regex and returns error message enquoted in "[[ERROR]]". if no error message is found returns `None`.
Expand Down

0 comments on commit 0705ddc

Please sign in to comment.