Skip to content

Commit 825523f

Browse files
authored
Merge pull request #107 from python-odin/development
Release 1.6.2
2 parents ca81aa4 + 8a82e0f commit 825523f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

HISTORY

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
1.X.X
1+
1.6.2
22
=====
33

44
- Migrate string formatting from % to "".format
5+
- Apply black code style on all code
6+
- Improve some type hints
57
- Add a Text block to XML Codec
68

79
1.6.1

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "odin"
3-
version = "1.6.1"
3+
version = "1.6.2"
44
description = "Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python"
55
authors = ["Tim Savage <tim@savage.company>"]
66
license = "BSD-3-Clause"

src/odin/resources.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# -*- coding: utf-8 -*-
22
import copy
33
import six
4-
5-
# Typing imports
6-
from typing import TypeVar, Dict, Any # noqa
4+
from typing import TypeVar, Dict, Any, Type # noqa
75

86
from odin import bases
97
from odin import exceptions, registration
@@ -687,7 +685,7 @@ def _resolve_type_from_data(data):
687685
def create_resource_from_dict(
688686
d, resource=None, full_clean=True, copy_dict=True, default_to_not_provided=False
689687
):
690-
# type: (Dict[str, Any], R, bool, bool, bool) -> Instance[R]
688+
# type: (Dict[str, Any], Type[R], bool, bool, bool) -> R
691689
"""
692690
Create a resource from a dict.
693691

0 commit comments

Comments
 (0)