mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
schema: Continue
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9cfcc1bd68
commit
c50c614f13
7 changed files with 223 additions and 52 deletions
|
|
@ -1,11 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from typing import Optional, List, Iterable, Any
|
||||
from typing import Optional, Iterable, Any
|
||||
|
||||
class ColumnSet: # export
|
||||
|
||||
def __init__(self, *args: List[Any], columns: List[Any]=[], table: Optional[Any]=None, names: Optional[List[str]]=None):
|
||||
self.__columns: List[Any] = [*args]
|
||||
def __init__(self, *args: list[Any], columns: list[Any]=[], table: Optional[Any]=None, names: Optional[list[str]]=None):
|
||||
self.__columns: list[Any] = [*args]
|
||||
self.__columns.extend(columns)
|
||||
self.__table = table
|
||||
if names is not None:
|
||||
|
|
@ -39,5 +39,5 @@ class ColumnSet: # export
|
|||
return True
|
||||
|
||||
@property
|
||||
def columns(self) -> List[Any]:
|
||||
def columns(self) -> list[Any]:
|
||||
return self.__columns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue