style
This commit is contained in:
parent
c201370f48
commit
4a67e2421a
@ -8,7 +8,7 @@ from io import StringIO
|
||||
from typing import Any, Optional, IO, Type, Hashable
|
||||
|
||||
|
||||
__all__ = ('KVRequest', 'KVJson', 'DbConnection', 'DbFactory', 'Db', )
|
||||
__all__ = ('KVRequest', 'KVJson', 'DbConnection', 'DbFactory', 'Db',)
|
||||
|
||||
|
||||
class Request:
|
||||
@ -99,8 +99,8 @@ class DbConnection:
|
||||
__initial_size: int
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
factory: 'DbFactory',
|
||||
self,
|
||||
factory: 'DbFactory',
|
||||
) -> None:
|
||||
self.factory = factory
|
||||
path = self.factory.path
|
||||
@ -282,6 +282,7 @@ class DbConnection:
|
||||
del self.__task
|
||||
del self.__initial_size
|
||||
|
||||
|
||||
class DbFactory:
|
||||
def __init__(self, path: str | pathlib.Path, *, kvrequest_type: Type[KVRequest], buffersize=1048576):
|
||||
self.path = path = str(path)
|
||||
|
Loading…
Reference in New Issue
Block a user