YATODO
YATODO (Yet Another TODO) is a placeholder function for code that needs to be implemented. It raises a NotImplementedError with a descriptive message about the call site. It can be inserted anywhere in the code where functionality is yet to be implemented, without basedpyright screaming warnings. You can use it as a placeholder for function bodies, expressions that are not yet decided, or even insert into the middle of an not fully implemented class.
Provides three functions: todo(what: str), todof(msg: str), and todoc(msg: str). todo(what: str) can be inserted anywhere in the code where functionality is yet to be implemented, without basedpyright screaming warnings. todof(msg: str) is a decorator that can be used to mark entire functions as TODOs. When the decorated function is called, it raises a NotImplementedError with a descriptive message about the call site. todoc(msg: str) is a class decorator that can be used to mark entire classes as TODOs. When any method of the decorated class is called, it raises a NotImplementedError with a descriptive message about the call site.
Usage
from yatodo import todo, todof, todoc
# Example 1: Using todo as a placeholder for a function body
def my_function():
todo("Implement the logic for my_function")
# Example 2: Using todo as a placeholder in an expression
def calculate_area(radius: float) -> float:
return 3.14 * todo() * todo()
# Example 3: Using todof to mark an entire function as a TODO
@todof("This function is not implemented yet")
def unimplemented_function():
pass
# Example 4: Using todoc to mark an entire class as a TODO
@todoc("This class is not implemented yet")
class UnimplementedClass:
def method_one(self):
pass
def method_two(self):
pass
@todof("This method is not implemented yet")
def already_decorated_method(self):
pass
@staticmethod
@todof("This static method is not implemented yet")
def already_decorated_static_method():
pass
@classmethod
@todof("This class method is not implemented yet")
def already_decorated_class_method(cls):
pass
Metadata
Release files for yatodo 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yatodo-0.1.6.tar.gz | 5.5 kB | Without provenance | Details for yatodo-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yatodo-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for yatodo-0.1.6-py3-none-any.whl |
Total release size: 12.1 kB
Release files / yatodo-0.1.6.tar.gz
| Download URL | yatodo-0.1.6.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
471437a7bf3008b281222d0df98d378374f768752169cd86fd9cd92164445e72
|
|
BLAKE2b-256 checksum How to use checksums |
33044bca454f160791d19c46b305ebf74328fa4913e4e780648f8f5b57332dd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / yatodo-0.1.6-py3-none-any.whl
| Download URL | yatodo-0.1.6-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdf7133c39639a12e40443b17b4231f5d2ca13046314c3856725aed4e5438841
|
|
BLAKE2b-256 checksum How to use checksums |
0f51bb8c6f8acc471153db20371af45462d1d882d696115a6d8f5996b20c6aee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for yatodo 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.