* Allow fast ObjectType creation based on dataclasses
* Fixed Python 3.8 integration
* Added repr and eq methods to ObjectType containers
* Reformatted code
* Fixed mypy issue
* Removed unused __init__ for ObjectType containers
* Use black in dataclasses
* Use latest black verison on precommit
The subclass polyfill was only needed for Python 2.7-3.5
Python 3.6 introduced the __init_subclass__, so since Graphene now requires Python 3.6+, this is no longer needed.
https://www.python.org/dev/peps/pep-0487/
* Added support for subscription
* Added pre-commit hooks for black and formatted changed files
* Checked with flake8
* Integrated changes from master.
Co-authored-by: Rob Blackbourn <rblackbourn@bhdgsystematic.com>
Co-authored-by: Rob Blackbourn <rtb@beast.jetblack.net>
* Add a helpful message to when a global_id fails to parse.
* Update test_node to have errors on test_node_query_incorrect_id
* Black the node.py file
* Remove func wrapper used in debugging get_resolver partial
* Update node.py
* Expand error messages
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
* The default_value of InputField should be INVALID
Since GraphQL 3.0 there is a distinction between None and INVALID (no value).
The tests captured the bug and are updated.
* Update minimum graphql-core version
* Use Undefined instead of INVALID
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
* Fix tests
* Add extra folders to make test command
* Update snapshots
* Add python 3.8 to test matrix
* Add black command to makefile and black dependency to setup.py
* Add lint command
* Run format
* Remove 3.8 from test matrix
* Add Python 3.8 to test matrix
* Update setup.py
* Propagate name, deprecation_reason arguments of relay.NodeField to Field
* Allow custom description in Node.Field and move ID description to ID argument
* Add test for Node.Field with custom name
* Add tests for description, deprecation_reason arguments of NodeField
* Pass all kwargs from NodeField to Field