Skip to content

Commit d456d3c

Browse files
Use union to indicate multiple allowed types.
1 parent 588b592 commit d456d3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datajoint/table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
UnknownAttributeError,
2323
IntegrityError,
2424
)
25+
from typing import Union
2526
from .version import __version__ as version
2627

2728
logger = logging.getLogger(__name__.split(".")[0])
@@ -462,7 +463,7 @@ def delete_quick(self, get_count=False):
462463
def delete(
463464
self,
464465
transaction: bool = True,
465-
safemode: bool = None,
466+
safemode: Union[bool, None] = None,
466467
force_parts: bool = False,
467468
) -> int:
468469
"""

0 commit comments

Comments
 (0)