From d94128aa6ea552934103a4848ea33b747fa7ac5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Mon, 10 May 2021 21:32:00 +0200
Subject: [PATCH] simplified from_dict

---
 satella/__init__.py                        | 2 +-
 satella/configuration/sources/from_dict.py | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/satella/__init__.py b/satella/__init__.py
index b6aa12ad..413aa79f 100644
--- a/satella/__init__.py
+++ b/satella/__init__.py
@@ -1 +1 @@
-__version__ = '2.16.2a5'
+__version__ = '2.16.2a6'
diff --git a/satella/configuration/sources/from_dict.py b/satella/configuration/sources/from_dict.py
index ade9997e..ee563941 100644
--- a/satella/configuration/sources/from_dict.py
+++ b/satella/configuration/sources/from_dict.py
@@ -52,10 +52,6 @@ def load_source_from_dict(dct: dict) -> BaseSource:
     def to_arg(arg):
         if isinstance(arg, dict) and 'type' in arg:
             a_type = arg['type']
-            if a_type == 'BuildObjectFrom':
-                key_name = arg['key']
-                child = load_source_from_dict(arg['child'])
-                return BuildObjectFrom(key_name, child)
             if a_type in EXTRA_TYPES:
                 return EXTRA_TYPES[a_type](arg)
             elif a_type in sources.__dict__:
-- 
GitLab