maybe-no-member,
no-member,
no-method-argument,
- no-name-in-module,
no-self-argument,
not-callable,
no-value-for-parameter,
# should use openstack.common.jsonutils
json
+[TYPECHECK]
+# List of module names for which member attributes should not be checked
+ignored-modules=six.moves,_MovedItems
+
[REPORTS]
# Tells whether to display a full report or only the messages
reports=no
from six import moves
import sqlalchemy
-from sqlalchemy.orm.properties import RelationshipProperty
+from sqlalchemy.orm import properties
from neutron.common import exceptions as n_exc
from neutron.openstack.common import log as logging
# existed in attr_info, it will be catched at here
msg = _("%s is invalid attribute for sort_key") % sort_key
raise n_exc.BadRequest(resource=model.__tablename__, msg=msg)
- if isinstance(sort_key_attr.property, RelationshipProperty):
+ if isinstance(sort_key_attr.property, properties.RelationshipProperty):
msg = _("The attribute '%(attr)s' is reference to other "
"resource, can't used by sort "
"'%(resource)s'") % {'attr': sort_key,