From e91a483dbe96b884c2193a34a4b7e9b836ca31f6 Mon Sep 17 00:00:00 2001 From: Steph Prince <40640337+stephprince@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:38:03 -0500 Subject: [PATCH] warn for positional args in validation --- src/pynwb/validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pynwb/validation.py b/src/pynwb/validation.py index fee80adff..d2fb5cb17 100644 --- a/src/pynwb/validation.py +++ b/src/pynwb/validation.py @@ -5,7 +5,7 @@ from hdmf.spec import NamespaceCatalog from hdmf.build import BuildManager, TypeMap -from hdmf.utils import docval, getargs +from hdmf.utils import docval, getargs, AllowPositional from hdmf.backends.io import HDMFIO from hdmf.validate import ValidatorMap @@ -124,6 +124,7 @@ def get_cached_namespaces_to_validate(path: Optional[str] = None, returns="Validation errors in the file.", rtype=list, is_method=False, + allow_positional=AllowPositional.WARNING, ) def validate(**kwargs): """Validate NWB file(s) against a namespace or its cached namespaces.