Skip to content

Commit 0da659b

Browse files
committed
STYLE: Use from future import annotations (pandas-dev#41892)
1 parent 1739199 commit 0da659b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,9 @@ repos:
136136
entry: python scripts/no_bool_in_generic.py
137137
language: python
138138
files: ^pandas/core/generic\.py$
139+
- id: always-use-future-annotations
140+
name: ensure that "from __future__ import annotations" is always used
141+
types: [python]
142+
language: pygrep
143+
args: [--negate]
144+
entry: 'from __future__ import annotations'

0 commit comments

Comments
 (0)