###### v.1.0.4: Fix all mypy stub issues

This commit is contained in:
Firepup Sixfifty 2023-05-26 02:04:39 +00:00
parent f63b1dd9a9
commit 93a5a810cb
7 changed files with 10 additions and 5 deletions

View file

@ -1,6 +1,8 @@
# FPSQL # FPSQL
An easy to use SQLite package An easy to use SQLite package
#### Change log: #### Change log:
###### v.1.0.4:
Fix all mypy stub issues
###### v.1.0.3: ###### v.1.0.3:
Provide a mypy stub file Provide a mypy stub file
###### v.1.0.2: ###### v.1.0.2:

Binary file not shown.

BIN
package/dist/fpsql-1.0.4.tar.gz vendored Normal file

Binary file not shown.

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "fpsql" name = "fpsql"
version = "1.0.3" version = "1.0.4"
authors = ["Firepup650 <firepyp650@gmail.com>"] authors = ["Firepup650 <firepyp650@gmail.com>"]
description = "An easy to use SQLite package" description = "An easy to use SQLite package"
readme = "README.md" readme = "README.md"

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = fpsql name = fpsql
version = 1.0.3 version = 1.0.4
author = Firepup650 author = Firepup650
author_email = firepyp650@gmail.com author_email = firepyp650@gmail.com
description = An easy to use SQLite package description = An easy to use SQLite package

View file

@ -1,4 +1,5 @@
"""Firepup650's SQL Package""" """Firepup650's SQL Package"""
from typing import Any
import sqlite3, ast, pydoc import sqlite3, ast, pydoc
@ -72,14 +73,14 @@ class sql:
None""" None"""
self.__table = tableName self.__table = tableName
def get(self, name: str) -> object or None: def get(self, name: str) -> Any:
"""# Function: sql.get """# Function: sql.get
Gets the value of a key Gets the value of a key
# Inputs: # Inputs:
name: str - The name of the key to retrieve name: str - The name of the key to retrieve
# Returns: # Returns:
object or None - If the key exists, return it's value, otherwise, return `None` Any - If the key exists, return it's value (casted), otherwise, return `None`
# Raises: # Raises:
AttributeError - If the table is unset""" AttributeError - If the table is unset"""

View file

@ -1,3 +1,5 @@
from typing import Any
def alias(Function): ... def alias(Function): ...
__VERSION__: str __VERSION__: str
@ -8,7 +10,7 @@ class sql:
def addTable(self, tableName: str, mode: int = ..., address: str = ...) -> None: ... def addTable(self, tableName: str, mode: int = ..., address: str = ...) -> None: ...
def __init__(self, filename: str) -> None: ... def __init__(self, filename: str) -> None: ...
def setTable(self, tableName: str) -> None: ... def setTable(self, tableName: str) -> None: ...
def get(self, name: str) -> object or None: ... def get(self, name: str) -> Any: ...
def set(self, name: str, value: object) -> int: ... def set(self, name: str, value: object) -> int: ...
def delete(self, name: str) -> None: ... def delete(self, name: str) -> None: ...
def deleteAll(self) -> None: ... def deleteAll(self) -> None: ...