Skip to content

Commit 23dabbc

Browse files
committed
Testing Protocol dummy class
1 parent 73492ba commit 23dabbc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyVHDLModel/VHDLModel.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@
4343
# load dependencies
4444
from enum import Enum
4545
from pathlib import Path
46-
from typing import List, Tuple, Union, Protocol
46+
from typing import List, Tuple, Union
47+
try:
48+
from typing import Protocol
49+
except ImportError:
50+
class Protocol:
51+
pass
4752

4853
from pydecor.decorators import export
4954

0 commit comments

Comments
 (0)