[PonyORM-list] pylint

Аня Свалова saa1330 at gmail.com
Tue Aug 25 15:28:32 UTC 2015


​​
​Hi, ​
I decided to check my
​project
via pylint, but this
​check
failed with error "Unexpected keyword argument 'field1' in constructor call
(unexpected-keyword-arg)". What should I do to
​do to fix this error?
?

​In t
he test project two files: __init __.
​py​
and test.p
​y​
.

test.p
​​
​y​

​​
​# coding: utf-8

from pony.orm import sql_debug, db_session, Database, Required

db = Database()


class MyClass(db.Entity):
    field1=Required(unicode)


db.bind('sqlite', '/tmp/dns11.sqlite', create_db=True)
db.generate_mapping(create_tables=True)

with db_session:
    MyClass(field1='aaa')

​

​Regards,
Anna.​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20150825/58dc832a/attachment.html>


More information about the ponyorm-list mailing list