From a4beddbe757ff34d90591c79d9ed8462752ee47c Mon Sep 17 00:00:00 2001
From: wucong.lyb <wucong.lyb@alibaba-inc.com>
Date: 星期四, 29 六月 2023 17:14:17 +0800
Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR
---
funasr/fileio/datadir_writer.py | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/funasr/fileio/datadir_writer.py b/funasr/fileio/datadir_writer.py
index 67ec61c..e555ebc 100644
--- a/funasr/fileio/datadir_writer.py
+++ b/funasr/fileio/datadir_writer.py
@@ -2,8 +2,6 @@
from typing import Union
import warnings
-from typeguard import check_argument_types
-from typeguard import check_return_type
class DatadirWriter:
@@ -20,7 +18,6 @@
"""
def __init__(self, p: Union[Path, str]):
- assert check_argument_types()
self.path = Path(p)
self.chilidren = {}
self.fd = None
@@ -31,7 +28,6 @@
return self
def __getitem__(self, key: str) -> "DatadirWriter":
- assert check_argument_types()
if self.fd is not None:
raise RuntimeError("This writer points out a file")
@@ -41,11 +37,9 @@
self.has_children = True
retval = self.chilidren[key]
- assert check_return_type(retval)
return retval
def __setitem__(self, key: str, value: str):
- assert check_argument_types()
if self.has_children:
raise RuntimeError("This writer points out a directory")
if key in self.keys:
--
Gitblit v1.9.1