FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clarify optional None parameters in docstrings by IceboxDev · Pull Request #351 · grantjenks/python-diskcache · GitHub

Repository navigation

Clarify optional None parameters in docstrings - #351

Open
IceboxDev wants to merge 1 commit into
grantjenks:masterfrom
IceboxDev:master
Open

IceboxDev wants to merge 1 commit into
grantjenks:masterfrom
IceboxDev:master

Conversation

Copy link
Copy Markdown

📝 Description

Docstrings across the cache modules were overly strict about parameter types, omitting that several values—such as expire, tag, or directory could legitimately be None. This led to confusing type-hint warnings. The updated docstrings explicitly document optional None values throughout the core, fanout, Django cache, persistent cache, and recipe helpers, ensuring the documentation matches actual behavior.

✨ Changes

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🔨 Refactor (non-breaking change which refactors the code base)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔒 Security update

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL