types-filelock
Typing stubs for filelock
Decision gist · record as of 2026-08-14
No, unless you are locked into filelock < 3.3.0. For any recent filelock version, the package is redundant—filelock itself provides type stubs. The package has not been updated since June 2022, and the description explicitly recommends uninstalling it if you use filelock 3.3.0 or newer. Install only if you have a specific constraint on an older filelock version.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only useful if you are type-checking code that uses filelock and your version of filelock is older than 3.3.0; newer filelock versions include their own type stubs, making this package unnecessary.
- Low install friction with no runtime dependencies.
- However, the package has not been updated since June 2022, and the description notes that filelock has included its own type annotations since version 3.3.0, making this package redundant for recent filelock users.
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0 (permissive), imposing no significant restrictions on use or redistribution.
last release 2022-06-09 (1527 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 506,179 downloads/mo, #6,288 on PyPI
Alternatives
Verify before relying
pip install types-filelock
# Then use with a type checker like mypy on code that imports filelock
import filelock
lock = filelock.FileLock('/tmp/test.lock')- Whether the type stubs in this package remain accurate for current filelock versions given the package's last release was June 2022.
- Current compatibility with modern type checkers (mypy, pyright, etc.) and their latest versions.
What it is and what it does
types-filelock is a PEP 561 type stub package that provides type hints for the filelock library. It allows static type checkers like mypy, PyCharm, and pytype to understand and validate code that uses filelock's locking primitives. The package is sourced from typeshed, the community repository of type stubs for the Python standard library and popular third-party packages.
However, this package is largely obsolete for current users: filelock has included its own type annotations since version 3.3.0, making separate type stubs unnecessary. The package has not been updated since June 2022 and exists primarily for users stuck on older filelock versions that predate built-in type support.
Use it for
- Type-checking legacy code that uses filelock versions older than 3.3.0 when the filelock package itself did not include type stubs.
- Ensuring type safety in projects using older filelock versions before migrating to a newer release with built-in type annotations.
- Providing type information to IDEs and type checkers for filelock when working in environments where filelock cannot be upgraded.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are locked into filelock < 3.3.0.
For any recent filelock version, the package is redundant—filelock itself provides type stubs. The package has not been updated since June 2022, and the description explicitly recommends uninstalling it if you use filelock 3.3.0 or newer. Install only if you have a specific constraint on an older filelock version.
Install
types-filelock on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package has not been updated since June 2022, and the description notes that filelock has included its own type annotations since version 3.3.0, making this package redundant for recent filelock users.
Only useful if you are type-checking code that uses filelock and your version of filelock is older than 3.3.0; newer filelock versions include their own type stubs, making this package unnecessary.
License in practice
Licensed under Apache-2.0 (permissive), imposing no significant restrictions on use or redistribution.
Quickstart
pip install types-filelock
# Then use with a type checker like mypy on code that imports filelock
import filelock
lock = filelock.FileLock('/tmp/test.lock')
Verify before relying
- Whether the type stubs in this package remain accurate for current filelock versions given the package's last release was June 2022.
- Current compatibility with modern type checkers (mypy, pyright, etc.) and their latest versions.
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,527 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 506,179 / month, #6,288 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_filelock-3.2.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs filelock”
- types-filelockProvides type stubs for the filelock package to enable static type…
- locketLocket provides file-based locks for inter-process synchronization on…
- filelockProvides a platform-independent file locking mechanism to coordinate…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-Flask · types-freezegun · types-click · types-certifi · types-Werkzeug · types-pkg-resources · types-Flask-SQLAlchemy · types-backports · types-cryptography · types-tornado