Skip to content

Commit e04c659

Browse files
committed
fix(compatibility): Use typing.Optional instead of | None
The | None syntax is only available starting from Python 3.10, but we still support Python 3.9 as it's supported by dbt.
1 parent c58e6db commit e04c659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/hooks/test_git_hook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import platform
66
import shutil
7+
import typing
78

89
import pytest
910
from dulwich.repo import Repo
@@ -295,7 +296,7 @@ def repo_name():
295296

296297

297298
@pytest.fixture
298-
def repo_branch(request) -> bytes | None:
299+
def repo_branch(request) -> typing.Optional[bytes]:
299300
"""A configurable local git repo branch."""
300301
try:
301302
return request.param

0 commit comments

Comments
 (0)