Skip to content

TYP: Type annotations in pandas/io/formats/style.py #30403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8232df0
TYP: Typing annotations in pandas/io/formats/style.py
Jan 5, 2020
474cafc
Removed Unused import
Jan 5, 2020
2974074
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 6, 2020
f5e5ca0
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 6, 2020
966420f
Fix merge conflicts
Jan 8, 2020
c7ade5d
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 8, 2020
ead43a9
Lint issues
Jan 8, 2020
0ad1a72
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 10, 2020
7fe0b27
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 14, 2020
7155254
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 14, 2020
7390ea5
Fixed typing problem with 'data'
Jan 14, 2020
71bbbca
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 16, 2020
9d12219
Replaced "Hashable" with "Label" form pandas._typing
Jan 16, 2020
ceb9ce8
Removed annotation for 'cell_context'
Jan 16, 2020
a5905f3
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 16, 2020
6a06e50
Fixed docs and typing for attr
Jan 16, 2020
c373e2b
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 16, 2020
b3ae4d1
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 17, 2020
5e4078e
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 18, 2020
0f0438e
Merge remote-tracking branch 'upstream/master' into TYP-io-formats-style
Jan 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions pandas/io/formats/excel.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
"""Utilities for conversion to writer-agnostic Excel representation
"""
Utilities for conversion to writer-agnostic Excel representation.
"""

from functools import reduce
import itertools
import re
from typing import Callable, Dict, List, Optional, Sequence, Union
from typing import Callable, Dict, Optional, Sequence, Union
import warnings

import numpy as np

from pandas._typing import Label

from pandas.core.dtypes import missing
from pandas.core.dtypes.common import is_float, is_scalar
from pandas.core.dtypes.generic import ABCMultiIndex, ABCPeriodIndex
Expand Down Expand Up @@ -371,10 +374,10 @@ def __init__(
df,
na_rep: str = "",
float_format: Optional[str] = None,
cols: Optional[Sequence] = None,
header: Union[bool, List[str]] = True,
cols: Optional[Sequence[Label]] = None,
header: Union[Sequence[Label], bool] = True,
index: bool = True,
index_label: Union[str, Sequence, None] = None,
index_label: Optional[Union[Label, Sequence[Label]]] = None,
merge_cells: bool = False,
inf_rep: str = "inf",
style_converter: Optional[Callable] = None,
Expand Down
Loading