10000 Update type hints to python3 style (non-array files) by gwrome · Pull Request #25802 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Update type hints to python3 style (non-array files) #25802

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 16 commits into from
Mar 30, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Requested changes
  • Loading branch information
gwrome committed Mar 22, 2019
commit 13fc9ca63034d2cf4ee6ed71d59e596d63db2758
2 changes: 1 addition & 1 deletion pandas/core/dtypes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __str__(self):
return self.name

@property
def type(self) -> bool:
def type(self) -> type:
"""
The scalar type for the array, e.g. ``int``

Expand Down
4 changes: 2 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import sys
import warnings
from textwrap import dedent
from typing import List, Union
from typing import List, Optional, Union

import numpy as np
import numpy.ma as ma
Expand Down Expand Up @@ -6246,7 +6246,7 @@ def diff(self, periods=1, axis=0):
def _gotitem(self,
key: Union[str, List[str]],
ndim: int,
subset: Union[Series, 'DataFrame', None] = None,
subset: Optional[Series, 'DataFrame'] = None,
) -> Union[Series, 'DataFrame']:
"""
Sub-classes to define. Return a sliced object.
Expand Down
0