###### 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
An easy to use SQLite package
#### Change log:
###### v.1.0.4:
Fix all mypy stub issues
###### v.1.0.3:
Provide a mypy stub file
###### 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]
name = "fpsql"
version = "1.0.3"
version = "1.0.4"
authors = ["Firepup650 <firepyp650@gmail.com>"]
description = "An easy to use SQLite package"
readme = "README.md"

View file

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

View file

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

View file

@ -1,3 +1,5 @@
from typing import Any
def alias(Function): ...
__VERSION__: str
@ -8,7 +10,7 @@ class sql:
def addTable(self, tableName: str, mode: int = ..., address: str = ...) -> None: ...
def __init__(self, filename: 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 delete(self, name: str) -> None: ...
def deleteAll(self) -> None: ...