From 751c74e7de1c78a151fdd8b76f220d8411a2108a Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 28 Apr 2026 14:27:05 +0200 Subject: Restructure the entire project, enforce linting and add support for type checkers --- src/otp2289/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/otp2289/__init__.py') diff --git a/src/otp2289/__init__.py b/src/otp2289/__init__.py index c9e3c74..8f8cf24 100644 --- a/src/otp2289/__init__.py +++ b/src/otp2289/__init__.py @@ -1,6 +1,6 @@ -# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# SPDX-License-Identifier: BSD-2-Clause # -# Copyright (c) 2020-2025 Simeon Simeonov +# Copyright (c) 2020-2026 Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -30,6 +30,7 @@ from .generator import ( OTPChallengeError, OTPGenerator, OTPGeneratorError, + OTPResponse, ) from .server import ( OTPInvalidResponseError, @@ -40,11 +41,11 @@ from .server import ( ) __author__ = 'Simeon Simeonov' -__version__ = '1.2.2' +__version__ = '2.0.0a' __license__ = 'BSD 2-Clause' -def int_or_str(value): +def int_or_str(value: int | str) -> int | str: """Returns int value of value when possible""" try: return int(value) @@ -61,6 +62,7 @@ __all__ = [ 'OTPGenerator', 'OTPGeneratorError', 'OTPInvalidResponseError', + 'OTPResponse', 'OTPState', 'OTPStateError', 'OTPStore', -- cgit v1.3