X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=collect%2Fshared_dict.py;h=3207927ed2f550b6516bce0c1b72fd96d7581ba4;hb=f995224a77488f3469c16a3f504dcf7a1393d834;hp=e0a42f2c55c2fc865b0c89642d458ae26009c224;hpb=713a609bd19d491de03debf8a4a6ddf2540b13dc;p=python_utils.git diff --git a/collect/shared_dict.py b/collect/shared_dict.py index e0a42f2..3207927 100644 --- a/collect/shared_dict.py +++ b/collect/shared_dict.py @@ -4,7 +4,7 @@ The MIT License (MIT) Copyright (c) 2020 LuizaLabs -Additions Copyright (c) 2022 Scott Gasch +Additions/Modifications Copyright (c) 2022 Scott Gasch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -29,11 +29,17 @@ This class is based on https://github.com/luizalabs/shared-memory-dict import pickle from contextlib import contextmanager -from functools import wraps from multiprocessing import RLock, shared_memory -from typing import Any, Dict, Generator, ItemsView, Iterator, KeysView, Optional, ValuesView - -from decorator_utils import synchronized +from typing import ( + Any, + Dict, + Generator, + ItemsView, + Iterator, + KeysView, + Optional, + ValuesView, +) class PickleSerializer: