mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 03:52:24 +03:00
Reword error message
This commit is contained in:
parent
847af75fd9
commit
fcdcae1f57
|
@ -38,7 +38,7 @@ class BaseType(SubclassWithMeta):
|
|||
def __init_subclass_with_meta__(
|
||||
cls, name=None, description=None, _meta=None, **_kwargs
|
||||
):
|
||||
assert "_meta" not in cls.__dict__, "Can't assign directly meta"
|
||||
assert "_meta" not in cls.__dict__, "Can't assign meta directly"
|
||||
if not _meta:
|
||||
return
|
||||
_meta.name = name or cls.__name__
|
||||
|
|
Loading…
Reference in New Issue
Block a user