Skip to content

Commit

Permalink
warn for positional args in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Dec 23, 2024
1 parent f7de447 commit e91a483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pynwb/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e91a483

Please sign in to comment.