Bobholamovic 2 gadi atpakaļ
vecāks
revīzija
a29e9fec04

+ 1 - 1
examples/rs_research/config_utils.py

@@ -121,7 +121,7 @@ def parse_args(*args, **kwargs):
     cfg_parser = argparse.ArgumentParser(add_help=False)
     cfg_parser.add_argument('--config', type=str, default='')
     cfg_parser.add_argument('--inherit_off', action='store_true')
-    cfg_args = cfg_parser.parse_known_args()[0]
+    cfg_args = cfg_parser.parse_known_args(*args, **kwargs)[0]
     cfg_path = cfg_args.config
     inherit_on = not cfg_args.inherit_off
 

+ 1 - 1
test_tipc/config_utils.py

@@ -109,7 +109,7 @@ def parse_args(*args, **kwargs):
     cfg_parser = argparse.ArgumentParser(add_help=False)
     cfg_parser.add_argument('--config', type=str, default='')
     cfg_parser.add_argument('--inherit_off', action='store_true')
-    cfg_args = cfg_parser.parse_known_args()[0]
+    cfg_args = cfg_parser.parse_known_args(*args, **kwargs)[0]
     cfg_path = cfg_args.config
     inherit_on = not cfg_args.inherit_off
 

+ 1 - 1
tests/testing_utils.py

@@ -144,7 +144,7 @@ class _CommonTestNamespace:
                             result.shape, self.__class__.__name__))
             else:
                 raise ValueError(
-                    "result type must be str, int, bool, set, np.bool, np.int32, "
+                    "Result type must be str, int, bool, set, np.bool, np.int32, "
                     "np.int64, np.str, float, np.ndarray, np.float32, np.float64"
                 )