Git Product home page Git Product logo

python-type-stubs's Introduction

Python Type Stubs

Introduction

As the Python team, we are helping to ensure that packages have high-quality type annotations. In cases where this must be done through type stubs, we are contributing stubs to typeshed. This repository contains our “work in progress”. Once the stubs for a package meet the requirements of typeshed, we will contribute them to typeshed and delete them from this repository. We also support partial stubs in our tooling in which case the stubs may never graduate from here, but we want to share them publicly so that others can contribute to or make use of what coverage we have.

Our Use of Type Stubs

Microsoft's Python Language Server Pylance uses type information to implement useful features like autocompletion and type checking. For best results, type annotations must be provided for functions, methods and variables.

There are two ways type annotations can be provided — through inline type annotations and through .pyi type stub files, which may be bundled with the package or installed separately from some other source such as typeshed or PyPI. We believe that the best approach for package authors is to have explicit inline type annotations that accurately and completely describe their public interface contract. This allows tools to validate the types for the package authors themselves and reduces the maintenance burden of keeping two separate API definitions in sync. In cases where inline type annotations are not possible (e.g. for compiled libraries), packages should include stub files that describe those portions of the interface.

We recognize that there may be cases where type stubs are more appropriate, such as:

  • Package authors who do not want to include type annotations, and
  • Large, complex packages where adding type annotations can take time, and stubs may be an appropriate intermediate step.

Upstreamed libraries

Stubs for the following libraries now exist in typeshed or the libraries themselves and are no longer maintained here:

The following libraries are py.typed. We still have stubs for them here, but we are no longer actively maintaining them. We continue to bundle them with Pylance so users on older, non-py.typed versions will still get type info. If you find problems in our stubs for these libraries, rather than filing an issue here, you should upgrade to the version shown below to get the official stubs:

  • matplotlib (3.8.0)

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

python-type-stubs's People

Contributors

avasam avatar bschnurr avatar debonte avatar diogo-rossi avatar domandinho avatar dr-irv avatar equal-l2 avatar erictraut avatar gramster avatar heejaechang avatar jakebailey avatar jiahonzheng avatar joyceerhl avatar judej avatar karthiknadig avatar lkct avatar maflat avatar matangover avatar microsoft-github-operations[bot] avatar microsoftopensource avatar msfterictraut avatar oliver-ni avatar rchiodo avatar rcomer avatar sjdemartini avatar stellahuang95 avatar sterliakov avatar timrid avatar tmke8 avatar tuchandra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-type-stubs's Issues

`pandas.option_context` false positive: 'Expect no arguments to "option_context" constructor'

Environment data

  • Language Server version: 2022.2.1 (pyright 618f54ed)
  • OS and version: OS X 11.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.4, 3.8.12

Expected behaviour

Should not give a warning when passing arguments to pandas.option_context

Actual behaviour

Gives error: Expect no arguments to "option_context" constructor

Logs

(omitting for now, let me know if it's useful)

Code Snippet / Additional information

Error happens on line 3:

import pandas as pd

with pd.option_context('display.max_rows', 10):
    print(pd.DataFrame(list(range(50))))

vscode screenshot:

Screen Shot 2022-02-10 at 02 23 54

Problem occurs with these versions:

  • pandas=1.4.0, python 3.9.4
  • pandas=1.3.5, python 3.8.12

(I didn't test other versions or combinations.)

Add tests for the type stubs

We are lacking tests for the type stubs. Now that pyright has preliminary support for expected_text in reveal_type we should be able to write fragments of code that serve as tests.

pandas DataFrame.astype() should accept a single dtype

This should work:

import pandas as pd

df = pd.DataFrame({"x": [1.0, 2.0, 3.0], "y": [4.0, 5, 6]})

df2 = df.astype(int)

print(df2)

Right now getting that the int argument to astype() on a DataFrame is not allowed. PR coming.

Pylance + Pandas

Environment data

  • Language Server version: v2021.11.2
  • OS and version: macOS 10.15.7
  • Python version: 3.8.2

Actual behaviour

I have 242 error all related to the pandas library but I would not put # type: ignore everywhere is there a solution?

The first is

dr = pandas.date_range(start='2021-12-01', periods=24, freq='H')
time = dr.strftime('%H:%M:%S')

Logs

Cannot access member "strftime" for type "DatetimeIndex"

pandas getitem should return DataFrame not NDFrame

import pandas as pd

df1 = pd.DataFrame([["a", 1], ["b", 2]], columns=["let", "num"]).set_index("let")

df2: pd.DataFrame = df1.reset_index()

df3: pd.DataFrame = df2[["num"]]

reports on the line assigning df3

Expression of type "NDFrame" cannot be assigned to declared type "DataFrame"
  "NDFrame" is incompatible with "DataFrame"

This was not a problem in earlier versions of pylance. This is with version 2021.5.1 .

The IntelliSense of Pylance works not well

  • Language Server version: v2021.11.1
  • OS and version: win10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.5

Expected behaviour

The IntelliSense of Pylance can work well like the Jedi Language Server:

Screenshot (87)

Capture

Actual behaviour

Screenshot (85)

`pandas.io.parsers.TextFileReader` now support `context manager` with `__enter__` and `__exit__` function but not include in stub file

pandas.io.parsers.TextFileReader now support context manager with __enter__ and __exit__ function but not include in stub file

class TextFileReader(abc.Iterator):
f = ...
orig_options = ...
engine = ...
chunksize = ...
nrows = ...
squeeze = ...
def __init__(self, f, engine = ..., **kwds) -> None: ...
def close(self) -> None: ...
def __next__(self): ...
def read(self, nrows = ...): ...
def get_chunk(self, size = ...): ...

Originally posted by @yanyongyu in #129 (comment)

inference on generic types depends on method returning generic

Environment data

  • Language Server version: 2021.8.2
  • OS and version: Windows 10 21H1
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda 3.8.5

Example

This example is from pandas, but I don't think it is a pandas typing issue:

import pandas as pd

df = pd.DataFrame([[1, 2], [4, 3]], columns=["a", "b"])

s1 = df.max(axis=1)

s2 = df.min(axis=1)

s3 = s1 + s2

Expected behaviour

No error

Actual behaviour

pylance reports:

Operator "+" not supported for types "Series[Dtype@max]" and "Series[Dtype@min]"
  Operator "+" not supported for types "Series[Dtype@max]" and "Series[Dtype@min]"

The issue seems to be that the method that determined the type (max or min in this case) is being used to do the matching for the + operator. The operators only get matched if the types are the same (e.g., both max, both min, both __getitem__).

This could be a pandas stub problem, but it isn't clear how to fix it.

Logs

N/A

Code Snippet / Additional information

See above.

Wrong return type of `read_csv` if using IO-Objects

When I send an StringIO parameter to read_csv I get typing errors telling the result would be a TextFileReader.
But this feels completely wrong.
In all my work, it returns a DataFrame for example on an StringIO.
Thus I propose to change.
A corresponding pr would come in a few seconds.

RPi.GPIO does not work

IntelliSense stopped working for RPi.GPIO module when using Pylance as a language server.

The IntelliSense works as intended when switching back to the JEDI language server.

Environment data

  • Language Server version: 2021.2.3
  • OS and version: linux arm (Raspberry Pi OS)
  • Python version (and distribution if applicable, e.g. Anaconda): 3.7.3
  • python.analysis.indexing: undefined
  • python.analysis.typeCheckingMode: off
  • Using virtual environment created via python's venv command

Expected behaviour

IntelliSense popup is expected to show all the functions/constants the module offers

https://imgur.com/K2KLYFD (Using JEDI)
image

Actual behaviour

Only some constants are shown in the IntelliSense popup

https://imgur.com/jRq0FC2 (Using Pylance)
image

Logs

Python Language Server Log when opening the file for the first time
[Info  - 4:24:56 PM] Pylance language server 2021.2.3 (pyright 44e42fe5) starting
[Info  - 4:24:56 PM] Server root directory: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist
[Info  - 4:24:56 PM] No configuration file found.
[Info  - 4:24:56 PM] Setting pythonPath for service "rpi_gpio_project_template": "/home/pi/Documents/Projects/rpi_gpio_project_template/env/bin/python"
Search paths found for configured python interpreter:
  /usr/lib/python3.7
  /usr/lib/python3.7/lib-dynload
  /home/pi/Documents/Projects/rpi_gpio_project_template/env/lib/python3.7/site-packages
[Error - 4:24:57 PM] stubPath /home/pi/Documents/Projects/rpi_gpio_project_template/typings is not a valid directory.
[Info  - 4:24:57 PM] Assuming Python version 3.7
[Info  - 4:24:57 PM] Assuming Python platform Linux
[Info  - 4:24:57 PM] Searching for source files
[Info  - 4:24:57 PM] Auto-excluding /home/pi/Documents/Projects/rpi_gpio_project_template/env
[Info  - 4:24:57 PM] Found 3 source files
[Info  - 4:24:57 PM] Background analysis(1) root directory: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist
[Info  - 4:24:57 PM] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
Background analysis message: getSemanticTokens
[BG(1)] parsing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (66ms)
[BG(1)] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 10ms] (439ms)
[BG(1)] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi (146ms)
[BG(1)] binding: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (1ms)
[BG(1)] parsing: /home/pi/Documents/Projects/rpi_gpio_project_template/env/lib/python3.7/site-packages/RPi/GPIO/__init__.py [fs read 0ms] (20ms)
[BG(1)] binding: /home/pi/Documents/Projects/rpi_gpio_project_template/env/lib/python3.7/site-packages/RPi/GPIO/__init__.py (2ms)
Background analysis message: getSemanticTokens
Background analysis message: analyze
[BG(1)] analyzing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py ...
[BG(1)]   checking: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py ...
[BG(1)]     parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 2ms] (46ms)
[BG(1)]     binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (7ms)
[BG(1)]     parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/typing.pyi [fs read 3ms] (115ms)
[BG(1)]     binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/typing.pyi (50ms)
[BG(1)]     parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi [fs read 3ms] (12ms)
[BG(1)]     binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi (4ms)
[BG(1)]   checking: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (338ms)
[BG(1)] analyzing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (339ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] parsing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (49ms)
[FG] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 9ms] (443ms)
[FG] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi (210ms)
[FG] binding: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (2ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Python Language Server Log when pressing CTRL+SPACE to get intelliSense for the first time ``` [Info - 4:24:56 PM] Pylance language server 2021.2.3 (pyright 44e42fe5) starting [Info - 4:24:56 PM] Server root directory: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist [Info - 4:24:56 PM] No configuration file found. [Info - 4:24:56 PM] Setting pythonPath for service "rpi_gpio_project_template": "/home/pi/Documents/Projects/rpi_gpio_project_template/env/bin/python" Search paths found for configured python interpreter: /usr/lib/python3.7 /usr/lib/python3.7/lib-dynload /home/pi/Documents/Projects/rpi_gpio_project_template/env/lib/python3.7/site-packages [Error - 4:24:57 PM] stubPath /home/pi/Documents/Projects/rpi_gpio_project_template/typings is not a valid directory. [Info - 4:24:57 PM] Assuming Python version 3.7 [Info - 4:24:57 PM] Assuming Python platform Linux [Info - 4:24:57 PM] Searching for source files [Info - 4:24:57 PM] Auto-excluding /home/pi/Documents/Projects/rpi_gpio_project_template/env [Info - 4:24:57 PM] Found 3 source files [Info - 4:24:57 PM] Background analysis(1) root directory: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist [Info - 4:24:57 PM] Background analysis(1) started Background analysis message: setConfigOptions Background analysis message: setTrackedFiles Background analysis message: markAllFilesDirty Background analysis message: setFileOpened Background analysis message: getSemanticTokens [BG(1)] parsing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (66ms) [BG(1)] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 10ms] (439ms) [BG(1)] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi (146ms) [BG(1)] binding: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (1ms) [BG(1)] parsing: /home/pi/Documents/Projects/rpi_gpio_project_template/env/lib/python3.7/site-packages/RPi/GPIO/__init__.py [fs read 0ms] (20ms) [BG(1)] binding: /home/pi/Documents/Projects/rpi_gpio_project_template/env/lib/python3.7/site-packages/RPi/GPIO/__init__.py (2ms) Background analysis message: getSemanticTokens Background analysis message: analyze [BG(1)] analyzing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py ... [BG(1)] checking: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py ... [BG(1)] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 2ms] (46ms) [BG(1)] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (7ms) [BG(1)] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/typing.pyi [fs read 3ms] (115ms) [BG(1)] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/typing.pyi (50ms) [BG(1)] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi [fs read 3ms] (12ms) [BG(1)] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stubs/typing-extensions/typing_extensions.pyi (4ms) [BG(1)] checking: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (338ms) [BG(1)] analyzing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (339ms) Background analysis message: resumeAnalysis Background analysis message: getDiagnosticsForRange Background analysis message: getDiagnosticsForRange [FG] parsing: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (49ms) [FG] parsing: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 9ms] (443ms) [FG] binding: /home/pi/.vscode/extensions/ms-python.vscode-pylance-2021.2.3/dist/typeshed-fallback/stdlib/builtins.pyi (210ms) [FG] binding: /home/pi/Documents/Projects/rpi_gpio_project_template/rpi_gpio_project_template/test.py (2ms) Background analysis message: getDiagnosticsForRange Background analysis message: getDiagnosticsForRange ```

Code Snippet / Additional information

My requirements.txt:

RPi.GPIO==0.7.0
astroid==2.4.2
autopep8==1.5.5
isort==5.7.0
lazy-object-proxy==1.4.3
mccabe==0.6.1
pycodestyle==2.6.0
pylint==2.6.2
six==1.15.0
toml==0.10.2
typed-ast==1.4.2
wrapt==1.12.1

Here is the content of my settings.json:

{
    "python.pythonPath": "env/bin/python",
    "python.formatting.autopep8Path": "env/bin/autopep8",
    "python.linting.pylintPath": "env/bin/pylint",
    "python.languageServer": "Pylance",
    "python.analysis.logLevel": "Trace"
}

And somewhere in my project I have the following code:

import RPi.GPIO as GPIO

GPIO.

When clicking on CTRL+SPACE I get the following IntelliSense (which does not contains all functions/constants from the RPi.GPIO module)

https://imgur.com/jRq0FC2

But when I switch to the JEDI language server with the following setting

{
    "python.pythonPath": "env/bin/python",
    "python.formatting.autopep8Path": "env/bin/autopep8",
    "python.linting.pylintPath": "env/bin/pylint",
    "python.languageServer": "Jedi"
}

Everything works as intended and I get the right intelliSense:

https://imgur.com/K2KLYFD

pylance 2202.1.5 incorrectly merges in docs for Series.groupby()

pylance 2202.1.5 has the following error in the distribution:

    def groupby(
        self,
        by = ...,
        axis: SeriesAxisType = ...,
        level: Optional[Level] = ...,
        as_index: _bool = ...,
        sort: _bool = ...,
        group_keys: _bool = ...,
        squeeze: _bool = ...,
        observed: _bool = ...,
        dropna: _bool = ...
    ) -> SeriesGroupBy: ...
        """Group Series using a mapper or by a Series of columns.
      BUNCH OF DOCS REMOVED
>>> ser.groupby(level="Type").mean()
Type
Captive    210.0
Wild       185.0
Name: Max Speed, dtype: float64
"""
        pass

You can't have both the -> SeriesGroupBy: ... and pass. This causes the following code to show up as an error:

import pandas as pd

s = pd.Series([1, 2, 3])

s2 = s + pd.Series(1)

s3 = s.__add__(s)

s4: pd.Series = s + 1

Basically, the presence of both ... and pass makes it where it can't find the __add__() operator.

There is something wrong with the merging of the docs into pylance.

Intellisense does work with GTK+ 3 (GObject Introspection)

Environment data

  • Language Server version: v2020.11.2
  • OS and version: Ubuntu 20.04 (WSL2) on Win 10, 19041.630
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.5

Expected behaviour

Autocomplete should show member functions and variables for GTK+ 3 library (import gi)

Actual behaviour

Autocomplete does not work for import gi

Logs

Nothing of relevance appeared to be in the logs for the language server. Things like: "setFileOpened, getDiagnosticsForRange, parsing file, binding, file, getSemanticTokens", but nothing odd.

Code Snippet / Additional information

  • Install GTK graphical user interface library -- gir bindings (gir1.2-gtk-3.0)
  • Install Python 3 bindings for gobject-introspection libraries (python3-gi)
  • Try to autocomplete Gtk.
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
win = Gtk.

Key issue: This works as expected if I change the language server to jedi, but does not work with pylance. Autocomplete also works fine in the Ubuntu command line interpreter (python3).

Related discussion that I found (but had trouble interpreting) on other github projects:

ACTION REQUIRED: Microsoft needs this private repository to complete compliance info

There are open compliance tasks that need to be reviewed for your python-type-stubs repo.

Action required: 4 compliance tasks

To bring this repository to the standard required for 2021, we require administrators of this and all Microsoft GitHub repositories to complete a small set of tasks within the next 60 days. This is critical work to ensure the compliance and security of your microsoft GitHub organization.

Please take a few minutes to complete the tasks at: https://repos.opensource.microsoft.com/orgs/microsoft/repos/python-type-stubs/compliance

  • The GitHub AE (GitHub inside Microsoft) migration survey has not been completed for this private repository
  • No Service Tree mapping has been set for this repo. If this team does not use Service Tree, they can also opt-out of providing Service Tree data in the Compliance tab.
  • No repository maintainers are set. The Open Source Maintainers are the decision-makers and actionable owners of the repository, irrespective of administrator permission grants on GitHub.
  • Classification of the repository as production/non-production is missing in the Compliance tab.

You can close this work item once you have completed the compliance tasks, or it will automatically close within a day of taking action.

If you no longer need this repository, it might be quickest to delete the repo, too.

GitHub inside Microsoft program information

More information about GitHub inside Microsoft and the new GitHub AE product can be found at https://aka.ms/gim or by contacting [email protected]

FYI: current admins at Microsoft include @qubitron, @greazer, @gramster, @judej, @ronglums, @brettcannon

Missing attributes in pandas DatetimeIndex

`
from pandas import date_range
dr = date_range(start='2000-01-01', periods='24', freq='H', tz='CET')
dayofweek = dr.dayofweek

Cannot access member "dayofweek" for type "DatetimeIndex"
Member "dayofweek" is unknown
`

Other missing attributes:

  • year
  • month
  • day
  • hour
  • minute
  • second
  • microsecond
  • nanosecond
  • date
  • time
  • timetz
  • dayofyear
  • day_of_year
  • weekofyear
  • week
  • dayofweek
  • day_of_week
  • weekday
  • quarter

Handling operators on different results of DataFrame operations

Consider the following test:

def test_sum_get_add() -> None:
    df = pd.DataFrame({"x": [1,2,3,4,5], "y": [10, 20, 30, 40, 50]})
    s = df["x"]
    reveal_type(s)
    summer = df.sum(axis=1)
    reveal_type(summer)
    
    s2 = s + summer  # error is here
    s3 = s + df["y"]
    s4 = summer + summer

With the current partial stubs in main, we get the following:

Operator "+" not supported for types "Series[S1@__getitem__]" and "Series[S1@sum]"
  Operator "+" not supported for types "Series[S1@__getitem__]" and "Series[S1@sum]"
Type of "s" is "Series[S1@__getitem__]"
Type of "summer" is "Series[S1@sum]"

It's not clear to me how to resolve this. I think the right solution is to not have Series[S1] as a return type in frame.pyi and use Series instead, because a DataFrame is not a generic type dependent on S1, but maybe pyright is being too picky because it is including the method names in the types?

@gramster may need to talk to @erictraut about this.

Generate some pandas stubs from pandas

We would like to start inlining as many of our type annotations as we can into pandas. At that point the pandas team can own maintaining these, but that brings the risk of us getting out of sync. Once we complete inlining all type annotations from one of the stub files here, we should remove the static stub file and instead regenerate it from pandas. That will allow us to gradually migrate more and more annotations over to pandas while maintaining maximum consistency.

Maintenance of pandas type stubs

The pandas team has an open issue with regards to type stubs: pandas-dev/pandas#28142

We'd like to have some discussion with the key developers (@jakebailey ? @gramster ? others ?) of the pandas type stubs to determine a best way forward for upkeep of these type stubs. I brought this up at our December, 2020, monthly core developers meeting.

Might be best for you guys to contribute over there in that pandas issue.

Thanks!

pandas read_excel(), DataFrame.iloc[] stubs issues

Environment data

  • Language Server version: 2021.7.5
  • OS and version: Lubuntu 21.04
  • Python version: 3.9.5

Code Snippet / Additional information

pandas.read_excel()

There is no @overload for the first positional argument being something other than str, namely bytes.

@overload
def read_excel(
    filepath: str,

Up-to-date docstrings snippet:

Parameters
----------
io : str, bytes, ExcelFile, xlrd.Book, path object, or file-like object

pandas.DataFrame.iloc[]

There is no @overload for a slice object with ints as an input.

class _iLocIndexerFrame(_iLocIndexer):
    @overload
    def __getitem__(self, idx: Tuple[int, int]) -> Scalar: ...
    @overload
    def __getitem__(self, idx: int) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, idx: Tuple[Union[IndexType, MaskType], int]) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, idx: Tuple[int, Union[IndexType, MaskType]]) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, idx: Union[int, Tuple[Union[IndexType, MaskType], Union[IndexType, MaskType, int]]]) -> DataFrame: ...

Up-to-date docstrings snippet:

Allowed inputs are:

- An integer, e.g. ``5``.
- A list or array of integers, e.g. ``[4, 3, 0]``.
- A slice object with ints, e.g. ``1:7``.

New argument to pandas.DataFrame.groupby since version 1.1

As of version 1.1 pandas allows a new argument to not drop NA values when grouping a DataFrame. I'm not too familiar with stubs, so I'm not sure how this kind of version dependent things are handled. By my guess it should at least be added in the following code, but I'm not sure how this plays out for users still on older versions of pandas.

def groupby(
self,
by: Optional[Union[List[_str], _str]] = ...,
axis: AxisType = ...,
level: Optional[Level] = ...,
as_index: _bool = ...,
sort: _bool = ...,
group_keys: _bool = ...,
squeeze: _bool = ...,
observed: _bool = ...,
) -> DataFrameGroupBy: ...

No suggestion/autocomplete for example for xml.dom.minidom objects

Hi Guys

I have a weird problem, which I faced only with this particular setup (xml.dom.minidom).

Environment data

  • Language Server version: v2022.1.3
  • OS and version: Windows 10 Home, 21H2, Build: 19044.1466
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10

Expected behaviour

Autocomplete for xml.dom.minidom attributes should be displayed. It is actually displayed when I use Jedi:
jedi_working

Actual behaviour

Autocomplete is not showing any attributes for an object created by xml.dom.minidom:
pylance

Logs

[Info  - 0:44:01] Pylance language server 2022.1.3 (pyright 98868f26) starting
[Info  - 0:44:01] Server root directory: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist
[Info  - 0:44:01] No pyproject.toml file found.
[Info  - 0:44:01] Setting pythonPath for service "<default>": "C:\Users\LordRolee\AppData\Local\Programs\Python\Python310\python.exe"
[Warn  - 0:44:01] stubPath typings is not a valid directory.
[Info  - 0:44:01] Assuming Python version 3.10
[Info  - 0:44:01] Assuming Python platform Windows
Search paths for <default>
  c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib
  typings
  c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\...
  c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\bundled\stubs
  c:\Users\LordRolee\AppData\Local\Programs\Python\Python310\DLLs
  c:\Users\LordRolee\AppData\Local\Programs\Python\Python310\Lib
  c:\Users\LordRolee\AppData\Local\Programs\Python\Python310
  c:\Users\LordRolee\AppData\Local\Programs\Python\Python310\Lib\site-packages
[Info  - 0:44:01] Searching for source files
[Info  - 0:44:01] No source files found.
[IDX(FG)] index libraries  ...
[IDX(FG)]   read stdlib indices (32ms)
[IDX(FG)] index libraries  [succeed] (32ms)
[FG] parsing: e:\VSCode\test.py (17ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 2ms] (98ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\builtins.pyi (31ms)
[FG] binding: e:\VSCode\test.py (1ms)
[Info  - 0:44:01] Background analysis(1) root directory: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist
[Info  - 0:44:01] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setImportResolver
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (19ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 3ms] (101ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\builtins.pyi (35ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing_extensions.pyi [fs read 1ms] (7ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing_extensions.pyi (1ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing.pyi [fs read 0ms] (26ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing.pyi (8ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi [fs read 1ms] (12ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi (1ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\types.pyi [fs read 0ms] (11ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\types.pyi (3ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\abc.pyi [fs read 0ms] (2ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\abc.pyi (1ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\dom\minidom.pyi [fs read 0ms] (13ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\dom\minidom.pyi (5ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\__init__.pyi [fs read 0ms] (3ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\__init__.pyi (1ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\api.pyi [fs read 0ms] (2ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\api.pyi (0ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\sessions.pyi [fs read 0ms] (6ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\sessions.pyi (2ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\models.pyi [fs read 1ms] (6ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\models.pyi (3ms)
[BG(1)]   parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\sax\xmlreader.pyi [fs read 0ms] (2ms)
[BG(1)]   binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\sax\xmlreader.pyi (1ms)
[BG(1)] getSemanticTokens full at e:\VSCode\test.py (310ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 5:50 at e:\VSCode\test.py (1ms)
Background analysis message: analyze
[BG(1)] analyzing: e:\VSCode\test.py ...
[BG(1)]   checking: e:\VSCode\test.py (1ms)
[BG(1)] analyzing: e:\VSCode\test.py (1ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: e:\VSCode\test.py (1ms)
[FG] binding: e:\VSCode\test.py (0ms)
Background analysis message: analyze
[BG(1)] analyzing: e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (0ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)]   checking: e:\VSCode\test.py (10ms)
[BG(1)] analyzing: e:\VSCode\test.py (11ms)
Background analysis message: resumeAnalysis
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067842122 at e:\VSCode\test.py (1ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at e:\VSCode\test.py:6:1 ...
[FG]   parsing: e:\VSCode\test.py (1ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:1 [found 508 items] (29ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at e:\VSCode\test.py:6:2 ...
[FG]   parsing: e:\VSCode\test.py (1ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:2 [found 251 items] (14ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing_extensions.pyi [fs read 0ms] (6ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing_extensions.pyi (1ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing.pyi [fs read 1ms] (27ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\typing.pyi (10ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi [fs read 0ms] (11ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi (1ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\types.pyi [fs read 1ms] (12ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\types.pyi (5ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\abc.pyi [fs read 0ms] (3ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\abc.pyi (0ms)
[FG] parsing: C:\Users\LORDRO~1\AppData\Local\Temp\pyright-6712-00amO7gHAHXb\builtins-6712-vjbTB8oO92a1-.py [fs read 0ms] (72ms)
[FG] binding: C:\Users\LORDRO~1\AppData\Local\Temp\pyright-6712-00amO7gHAHXb\builtins-6712-vjbTB8oO92a1-.py (31ms)
Background analysis message: analyze
[BG(1)] analyzing: e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (0ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:3 ...
[FG]   parsing: e:\VSCode\test.py (6ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:3 [found 58 items] (14ms)
[BG(1)]   checking: e:\VSCode\test.py (5ms)
[BG(1)] analyzing: e:\VSCode\test.py (5ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067843352 at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (1ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1643067843352 at e:\VSCode\test.py (12ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at e:\VSCode\test.py:6:6 ...
[FG]   parsing: e:\VSCode\test.py (0ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:6 [found 1 items] (5ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: e:\VSCode\test.py (0ms)
[FG] binding: e:\VSCode\test.py (0ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at e:\VSCode\test.py:6:8 ...
[FG]   parsing: e:\VSCode\test.py (0ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:8 [found 0 items] (5ms)
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067845129 at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (1ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1643067845129 at e:\VSCode\test.py (11ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: e:\VSCode\test.py (1ms)
[FG] binding: e:\VSCode\test.py (0ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067845457 at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (0ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1643067845457 at e:\VSCode\test.py (10ms)
[FG] parsing: e:\VSCode\test.py (0ms)
[FG] binding: e:\VSCode\test.py (0ms)
Background analysis message: analyze
[BG(1)] analyzing: e:\VSCode\test.py ...
[BG(1)]   checking: e:\VSCode\test.py (0ms)
[BG(1)] analyzing: e:\VSCode\test.py (0ms)
Background analysis message: resumeAnalysis
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at e:\VSCode\test.py:6:12 ...
[FG]   parsing: e:\VSCode\test.py (0ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:12 [found 393 items] (8ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at e:\VSCode\test.py:6:13 ...
[FG]   parsing: e:\VSCode\test.py (0ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:13 [found 197 items] (11ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\dom\minidom.pyi [fs read 0ms] (10ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\dom\minidom.pyi (3ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\__init__.pyi [fs read 0ms] (4ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\__init__.pyi (2ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\api.pyi [fs read 0ms] (2ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\api.pyi (1ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\sessions.pyi [fs read 0ms] (4ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\sessions.pyi (2ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\models.pyi [fs read 1ms] (5ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stubs\requests\requests\models.pyi (3ms)
[FG] parsing: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\sax\xmlreader.pyi [fs read 0ms] (1ms)
[FG] binding: c:\Users\LordRolee\.vscode\extensions\ms-python.vscode-pylance-2022.1.3\dist\typeshed-fallback\stdlib\xml\sax\xmlreader.pyi (1ms)
[FG] completion at e:\VSCode\test.py:6:14 ...
[FG]   parsing: e:\VSCode\test.py (2ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:14 [found 44 items] (8ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: e:\VSCode\test.py (0ms)
[FG] binding: e:\VSCode\test.py (0ms)
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067845816 at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (1ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1643067845816 at e:\VSCode\test.py (10ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067846678 at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (0ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1643067846678 at e:\VSCode\test.py (9ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: e:\VSCode\test.py (0ms)
[FG] binding: e:\VSCode\test.py (0ms)
Background analysis message: setFileOpened
[FG] completion at e:\VSCode\test.py:6:19 ...
[FG]   parsing: e:\VSCode\test.py (1ms)
[FG]   binding: e:\VSCode\test.py (0ms)
[FG] completion at e:\VSCode\test.py:6:19 [found 0 items] (12ms)
Background analysis message: markFilesDirty
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1643067847145 at e:\VSCode\test.py ...
[BG(1)]   parsing: e:\VSCode\test.py (1ms)
[BG(1)]   binding: e:\VSCode\test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1643067847145 at e:\VSCode\test.py (10ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] completion at e:\VSCode\test.py:6:19 [found 0 items] (0ms)
Background analysis message: analyze
[BG(1)] analyzing: e:\VSCode\test.py ...
[BG(1)]   checking: e:\VSCode\test.py (0ms)
[BG(1)] analyzing: e:\VSCode\test.py (0ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange 

Code Snippet / Additional information

import xml.dom.minidom
import requests

url = "http://httpbin.org/xml"
result = requests.get(url)
domtree = xml.dom.minidom.parseString(result.text)
rootnode = domtree.documentElement

Thank you,
Roland

Add matplotlib stubs

It seems that Pylance includes matplotlib stubs, but I can't find them in this repo. Is there a specific reason? Thanks!

Missing parameters in pandas DatetimeIndex constructor

import pandas as pd
pd.DatetimeIndex(data=df[timestamp_column], tz=tz,
normalize=False, closed=None,
ambiguous='NaT', copy=True)

No parameter named "tz"
No parameter named "normalize"
No parameter named "closed"
No parameter named "ambiguous"

Is compatibility with mypy a goal of this project?

When I install the pandas type stubs from this repository and check them with mypy I get hundreds of errors. (A large chunk is seemingly caused by Series not inheriting from Generic.)

Errors reported by mypy
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_config/config.pyi:12: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/dtypes/common.pyi:37: error: Function "numpy.array" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/dtypes/common.pyi:37: note: Perhaps you need "Callable[...]" or a callback protocol?
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:22: error: Signature of "__sub__" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:22: error: Signature of "__sub__" incompatible with supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:35: error: Signature of "isoformat" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:62: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:62: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:62: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:63: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:63: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:64: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:64: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:64: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:65: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:65: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:65: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:66: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:66: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:66: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:67: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:67: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:67: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:68: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:68: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:68: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:69: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:69: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:70: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:70: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:70: error: Incompatible types in assignment (expression has type "Type[np.nan?]", base class "datetime" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:71: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:71: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:72: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:72: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:73: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:73: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:74: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:74: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:75: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:75: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:76: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:76: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:77: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:77: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:78: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:78: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:79: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:79: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:80: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:80: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:81: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:81: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:82: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:82: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:83: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:83: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:84: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:84: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:85: error: Variable "numpy.nan" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:85: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:89: error: Return type "None" of "date" incompatible with return type "date" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:90: error: Return type "None" of "utctimetuple" incompatible with return type "struct_time" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:91: error: Return type "None" of "timetz" incompatible with return type "time" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:92: error: Return type "None" of "timetuple" incompatible with return type "struct_time" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:92: error: Return type "None" of "timetuple" incompatible with return type "struct_time" in supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:93: error: Signature of "strftime" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:93: error: Signature of "strftime" incompatible with supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:94: error: Return type "None" of "isocalendar" incompatible with return type "Tuple[int, int, int]" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:94: error: Return type "None" of "isocalendar" incompatible with return type "Tuple[int, int, int]" in supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:96: error: Return type "None" of "ctime" incompatible with return type "str" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:96: error: Return type "None" of "ctime" incompatible with return type "str" in supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:97: error: Return type "None" of "time" incompatible with return type "time" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:98: error: Return type "None" of "toordinal" incompatible with return type "int" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:98: error: Return type "None" of "toordinal" incompatible with return type "int" in supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:102: error: Return type "str" of "strptime" incompatible with return type "datetime" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:103: error: Argument 1 of "utcfromtimestamp" is incompatible with supertype "datetime"; supertype defines the argument type as "float"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:103: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:103: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:103: error: Return type "datetime" of "utcfromtimestamp" incompatible with return type "NaTType" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:104: error: Signature of "fromtimestamp" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:104: error: Argument 1 of "fromtimestamp" is incompatible with supertype "date"; supertype defines the argument type as "float"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:104: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:104: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:104: error: Return type "datetime" of "fromtimestamp" incompatible with return type "NaTType" in supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:105: error: Signature of "combine" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:106: error: Return type "Timestamp" of "utcnow" incompatible with return type "NaTType" in supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:108: error: Signature of "astimezone" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:109: error: Signature of "fromordinal" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:109: error: Signature of "fromordinal" incompatible with supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:109: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:111: error: Signature of "now" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:112: error: Signature of "today" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:112: error: Signature of "today" incompatible with supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:123: error: Signature of "replace" incompatible with supertype "datetime"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/nattype.pyi:123: error: Signature of "replace" incompatible with supertype "date"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/__init__.pyi:141: error: Cannot override class variable (previously declared on base class "timedelta") with instance variable
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/__init__.pyi:142: error: Cannot override class variable (previously declared on base class "timedelta") with instance variable
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/__init__.pyi:143: error: Cannot override class variable (previously declared on base class "timedelta") with instance variable
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/_libs/tslibs/__init__.pyi:153: error: Name 'datetime.timestamp' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/internals/blocks.pyi:101: error: Signature of "interpolate" incompatible with supertype "Block"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/internals/blocks.pyi:117: error: Signature of "to_native_types" incompatible with supertype "Block"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/internals/blocks.pyi:148: error: Incompatible types in assignment (expression has type "ellipsis", base class "ExtensionBlock" defined the type as "Callable[[ExtensionBlock, Any, str, Any, KwArg(Any)], Any]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/strings.pyi:46: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/generic.pyi:40: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/generic.pyi:68: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/generic.pyi:271: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:34: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:48: error: The erased type of self "pandas.core.indexes.base.Index" is not a supertype of its class "pandas.core.base.IndexOpsMixin[_T`1]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:48: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:50: error: The erased type of self "pandas.core.indexes.base.Index" is not a supertype of its class "pandas.core.base.IndexOpsMixin[_T`1]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:50: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:50: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/base.pyi:61: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:6: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Any, bool], Any]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:19: error: Return type "None" of "array" incompatible with return type "ExtensionArray" in supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:19: error: Return type "None" of "array" incompatible with return type "ExtensionArray" in supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:21: error: Name 'List' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:21: note: Did you forget to import it from "typing"? (Suggestion: "from typing import List")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:26: error: Signature of "copy" incompatible with supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:33: error: Signature of "format" incompatible with supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:35: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "List[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/multi.pyi:65: error: Signature of "drop" incompatible with supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/category.pyi:20: error: Signature of "astype" incompatible with supertype "ExtensionIndex"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/category.pyi:20: error: Signature of "astype" incompatible with supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/category.pyi:20: note: Overload variants must be defined in the same order as they are in "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/category.pyi:21: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:16: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:17: error: Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:32: error: Name 'np.double64' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:32: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:36: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:39: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:45: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:46: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:47: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:48: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:49: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:50: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:51: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:52: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:53: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:54: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:55: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:56: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:57: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:58: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:59: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:60: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:61: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:65: error: Signature of "aggregate" incompatible with supertype "SelectionMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:71: error: Signature of "agg" incompatible with supertype "SelectionMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:80: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:80: error: "SeriesGroupBy" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/groupby/generic.pyi:214: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/interval.pyi:48: error: Function "pandas.core.dtypes.cast.cast_scalar_to_array" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/interval.pyi:48: note: Perhaps you need "Callable[...]" or a callback protocol?
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:9: error: Module 'typing' has no attribute 'Literal'
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:24: error: Return type "Categorical" of "copy" incompatible with return type "ABCExtensionArray" in supertype "ExtensionArray"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:37: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:39: error: Overloaded function signature 3 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:39: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:43: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:45: error: Overloaded function signature 3 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:45: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:47: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:51: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:53: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:57: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:59: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:63: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:65: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:69: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:71: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:75: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:77: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:81: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:83: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:87: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/categorical.pyi:138: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:7: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:16: error: Value of type variable "_T" of "IntegerIndex" cannot be "signedinteger"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:17: error: Incompatible types in assignment (expression has type "ellipsis", base class "object" defined the type as "Optional[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:21: error: Return type "ndarray" of "asi8" incompatible with return type "None" in supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:23: error: Value of type variable "_T" of "IntegerIndex" cannot be "unsignedinteger"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:24: error: Incompatible types in assignment (expression has type "ellipsis", base class "object" defined the type as "Optional[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:28: error: Return type "ndarray" of "asi8" incompatible with return type "None" in supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:30: error: Value of type variable "_T" of "NumericIndex" cannot be "floating"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/numeric.pyi:31: error: Incompatible types in assignment (expression has type "ellipsis", base class "object" defined the type as "Optional[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/extension.pyi:9: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, object], Series]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/extension.pyi:10: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, str], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/datetimes.pyi:12: error: Return type "Union[dtype[Any], DatetimeTZDtype]" of "dtype" incompatible with return type "ExtensionDtype" in supertype "ExtensionArray"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/datetimelike.pyi:10: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index], bool]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/datetimelike.pyi:25: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Any], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/datetimelike.pyi:26: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Any], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/datetimelike.pyi:27: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Any], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/datetimelike.pyi:28: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Any], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:12: error: Free type variable expected in Generic[...]
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:31: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:84: error: Signature of "drop_duplicates" incompatible with supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:86: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:87: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:88: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:89: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:90: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:91: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:92: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:93: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:96: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:97: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:98: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:99: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:114: error: Name 'np.ndarray_int64' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:114: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:116: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:118: error: Name 'np.ndarray_int64' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:148: error: Single overload definition, multiple required
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:152: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:154: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/base.pyi:154: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:35: error: Overloaded function signatures 2 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:48: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:53: error: Overloaded function signatures 1 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:55: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:55: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:57: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:57: error: Overloaded function signatures 3 and 4 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:59: error: Overloaded function signature 4 will never be matched: signature 2's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:63: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:69: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:84: error: Variable "pandas.io.formats.format.float_format_type" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:84: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:87: error: Return type "Iterable[Tuple[Optional[Hashable], Series]]" of "items" incompatible with return type "None" in supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:95: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:105: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:107: error: Overloaded function signatures 2 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:203: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:207: error: Signature of "__getitem__" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:208: error: Overloaded function signatures 1 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:208: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:213: error: Name 'np.ndarray_str' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:213: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:213: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:226: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:237: error: Signature of "reindex" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:248: error: Signature of "rename" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:488: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:489: error: Signature of "sort_values" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:599: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:622: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:623: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:631: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:635: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:638: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:639: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:646: error: Signature of "agg" incompatible with supertype "SelectionMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:647: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:650: error: Signature of "aggregate" incompatible with supertype "SelectionMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:651: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:658: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:658: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:666: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:673: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:682: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:695: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:700: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:708: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:709: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:710: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:711: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:719: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:721: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:744: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:790: error: Argument 1 of "__delitem__" is incompatible with supertype "NDFrame"; supertype defines the argument type as "Union[int, str]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:790: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:790: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:832: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:834: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:836: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:870: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:872: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:884: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:886: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:912: error: Signature of "bfill" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:915: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:925: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:935: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:943: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:992: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1012: error: Signature of "ffill" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1043: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1147: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1166: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1172: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1174: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1181: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1207: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1226: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1245: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1264: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1296: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1357: error: Signature of "rename_axis" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1381: error: Name 'Oprional' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1439: error: Signature of "sample" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1476: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1477: error: Signature of "set_axis" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1503: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1526: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1561: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1648: error: Signature of "to_json" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1741: error: Name 'to_string' already defined on line 84
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1835: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1838: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/frame.pyi:1846: error: Return type "DataFrame" of "xs" incompatible with return type "Series" in supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:25: error: Free type variable expected in Generic[...]
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:30: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:35: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:38: error: Free type variable expected in Generic[...]
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:40: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:44: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:46: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:48: error: Overloaded function signature 3 will never be matched: signature 1's parameter type(s) are the same or broader
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:48: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:51: error: Free type variable expected in Generic[...]
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:56: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:67: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:71: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:74: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:78: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:93: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:96: error: Name 'np.float' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:96: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:97: error: Name 'np.long' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:97: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:98: error: Name 'np.int' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:98: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:101: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:103: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:103: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:107: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:109: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:111: error: Overloaded function signatures 1 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:113: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:117: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:163: error: Return type "Iterable[Tuple[Union[int, str], Any]]" of "items" incompatible with return type "None" in supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:180: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:182: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:183: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:184: error: Return type "ndarray" of "unique" incompatible with return type "Index" in supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:185: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:186: error: Return type "Series" of "duplicated" incompatible with return type "ndarray" in supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:186: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:189: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:191: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:197: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:199: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:201: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:202: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:205: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:211: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:223: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:225: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:226: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:227: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:228: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:229: error: Signature of "sort_values" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:237: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:248: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:254: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:255: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:256: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:257: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:258: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:259: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:261: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:262: error: Signature of "aggregate" incompatible with supertype "SelectionMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:269: error: Argument 1 of "agg" is incompatible with supertype "SelectionMixin"; supertype defines the argument type as "SelectionMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:269: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:269: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:278: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:295: error: Signature of "rename" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:307: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:313: error: Argument 7 of "drop" is incompatible with supertype "NDFrame"; supertype defines the argument type as "str"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:313: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:313: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:323: error: Signature of "fillna" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:326: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:337: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:343: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:347: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:353: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:356: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:362: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:369: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:370: error: Signature of "memory_usage" incompatible with supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:371: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:374: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:375: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:376: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:377: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:378: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:381: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:384: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:406: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:408: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:410: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:411: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:412: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:413: error: Signature of "reindex" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:413: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:420: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:421: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:422: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:431: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:438: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:439: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:446: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:447: error: Signature of "ffill" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:450: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:455: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:459: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:467: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:472: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:476: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:481: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:482: error: Signature of "bfill" incompatible with supertype "NDFrame"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:485: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:495: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:500: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:504: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:509: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:539: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:542: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:551: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:559: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:562: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:570: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:585: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:586: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:598: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:605: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:608: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:609: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:615: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:616: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:617: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:624: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:627: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:636: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:637: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:643: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:651: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:661: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:662: error: Return type "Series" of "transpose" incompatible with return type "Index" in supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:662: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:664: error: Signature of "T" incompatible with supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:664: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:672: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:673: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:675: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:676: error: Return type "Series" of "__eq__" incompatible with return type "bool" in supertype "object"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:676: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:677: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:678: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:679: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:692: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:693: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:694: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:695: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:696: error: Return type "Series" of "__ne__" incompatible with return type "bool" in supertype "object"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:696: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:697: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:698: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:699: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:700: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:701: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:702: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:703: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:704: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:705: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:706: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:707: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:708: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:709: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:710: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:711: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:712: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:713: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:714: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:719: error: Return type "_LocIndexerSeries" of "at" incompatible with return type "_AtIndexer" in supertype "IndexingMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:719: error: "_LocIndexerSeries" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:725: error: Return type "_iLocIndexerSeries" of "iat" incompatible with return type "_iAtIndexer" in supertype "IndexingMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:725: error: "_iLocIndexerSeries" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:727: error: "_iLocIndexerSeries" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:729: error: "_LocIndexerSeries" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:734: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:738: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:757: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:760: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:763: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:766: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:769: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:773: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:776: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:780: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:783: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:787: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:802: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:806: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:809: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:813: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:816: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:820: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:831: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:850: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:862: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:866: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:869: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:873: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:877: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:882: error: Signature of "max" incompatible with supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:891: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:910: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:929: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:939: error: Signature of "min" incompatible with supertype "IndexOpsMixin"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:948: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:960: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:964: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:967: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:971: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:974: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:978: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:981: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:985: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:989: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:993: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1004: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1025: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1038: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1042: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1045: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1049: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1056: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1059: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1063: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1066: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1070: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1084: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1088: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1091: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1095: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1102: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1113: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1133: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1153: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1166: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1173: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1204: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/series.pyi:1215: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:26: error: "Index" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:39: error: Signature of "get_indexer_for" incompatible with supertype "Index"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:48: error: Argument 1 of "intersection" is incompatible with supertype "Index"; supertype defines the argument type as "Union[List[Any], Index]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:48: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:48: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:51: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Union[List[Any], Index], Any], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:52: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Union[List[Any], Index]], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/indexes/interval.pyi:53: error: Incompatible types in assignment (expression has type "ellipsis", base class "Index" defined the type as "Callable[[Index, Union[List[Any], Index], Any, Any], Index]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/dtypes/dtypes.pyi:20: error: Incompatible types in assignment (expression has type "ellipsis", base class "ExtensionDtype" defined the type as "Type[Any]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/dtypes/dtypes.pyi:21: error: Incompatible types in assignment (expression has type "ellipsis", base class "ExtensionDtype" defined the type as "str")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/dtypes/dtypes.pyi:66: error: Variable "pandas.core.dtypes.dtypes.DatetimeTZDtype.str" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/dtypes/dtypes.pyi:66: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/string_.pyi:11: error: Return type "Type[StringArray]" of "construct_array_type" incompatible with return type "None" in supertype "ExtensionDtype"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/boolean.pyi:17: error: Return type "Type[BooleanArray]" of "construct_array_type" incompatible with return type "None" in supertype "ExtensionDtype"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/datetimelike.pyi:33: error: Argument 1 of "__setitem__" is incompatible with supertype "ExtensionArray"; supertype defines the argument type as "Union[int, ndarray]"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/datetimelike.pyi:33: note: This violates the Liskov substitution principle
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/arrays/datetimelike.pyi:33: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:67: error: Incompatible types in assignment (expression has type "ellipsis", base class "object" defined the type as "Optional[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:72: error: Incompatible types in assignment (expression has type "ellipsis", base class "TableFormatter" defined the type as "Union[List[Callable[..., Any]], Tuple[Callable[..., Any], ...], Mapping[Union[str, int], Callable[..., Any]]]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:83: error: Incompatible types in assignment (expression has type "ellipsis", base class "TableFormatter" defined the type as "Union[bool, str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:89: error: Incompatible types in assignment (expression has type "ellipsis", base class "TableFormatter" defined the type as "Index")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:91: error: Variable "pandas.io.formats.format.float_format_type" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:91: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:106: error: Variable "pandas.io.formats.format.float_format_type" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:106: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:120: error: Variable "pandas.io.formats.format.float_format_type" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:120: note: See https://mypy.readthedocs.io/en/latest/common_issues.html#variables-vs-type-aliases
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/formats/format.pyi:124: error: Incompatible types in assignment (expression has type "bool", base class "GenericArrayFormatter" defined the type as "ellipsis")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/computation/pytables.pyi:81: error: Incompatible types in assignment (expression has type "ellipsis", base class "Expr" defined the type as "Scope")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/excel/_base.pyi:4: error: Module 'typing' has no attribute 'Literal'
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/excel/_base.pyi:7: error: Overloaded function signatures 1 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/excel/_base.pyi:35: error: Overloaded function signatures 2 and 3 overlap with incompatible return types
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/stata.pyi:75: error: Incompatible types in assignment (expression has type "ellipsis", base class "object" defined the type as "Optional[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/sql.pyi:76: error: Incompatible types in assignment (expression has type "ellipsis", base class "PandasSQL" defined the type as "Callable[[PandasSQL, VarArg(Any), KwArg(Any)], None]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/parsers.pyi:62: error: Function "pandas.io.parsers.TextParser" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/parsers.pyi:62: note: Perhaps you need "Callable[...]" or a callback protocol?
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/parsers.pyi:168: error: Function "pandas.io.parsers.TextParser" is not valid as a type
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/parsers.pyi:168: note: Perhaps you need "Callable[...]" or a callback protocol?
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/json/_json.pyi:38: error: Incompatible types in assignment (expression has type "str", base class "Writer" defined the type as "ellipsis")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/json/_json.pyi:39: error: Incompatible types in assignment (expression has type "str", base class "Writer" defined the type as "ellipsis")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:251: error: Incompatible types in assignment (expression has type "ellipsis", base class "Fixed" defined the type as "str")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:252: error: Incompatible types in assignment (expression has type "ellipsis", base class "Fixed" defined the type as "str")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:266: error: Incompatible types in assignment (expression has type "ellipsis", base class "GenericFixed" defined the type as "List[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:274: error: Incompatible types in assignment (expression has type "ellipsis", base class "GenericFixed" defined the type as "List[str]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:283: error: Incompatible types in assignment (expression has type "ellipsis", base class "Fixed" defined the type as "Union[Type[DataFrame], Type[Series]]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:332: error: Incompatible types in assignment (expression has type "ellipsis", base class "Fixed" defined the type as "str")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:333: error: Incompatible types in assignment (expression has type "ellipsis", base class "Fixed" defined the type as "str")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:350: error: Signature of "write" incompatible with supertype "Fixed"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:354: error: Signature of "write" incompatible with supertype "Fixed"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:374: error: Incompatible types in assignment (expression has type "ellipsis", base class "AppendableFrameTable" defined the type as "Union[Type[DataFrame], Type[Series]]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:391: error: Incompatible types in assignment (expression has type "ellipsis", base class "AppendableFrameTable" defined the type as "Union[Type[DataFrame], Type[Series]]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:396: error: Incompatible types in assignment (expression has type "ellipsis", base class "Table" defined the type as "List[Tuple[int, Any]]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:398: error: Incompatible types in assignment (expression has type "ellipsis", base class "Table" defined the type as "int")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:399: error: Incompatible types in assignment (expression has type "ellipsis", base class "Table" defined the type as "List[IndexCol]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:400: error: Incompatible types in assignment (expression has type "ellipsis", base class "Table" defined the type as "List[DataCol]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:401: error: Incompatible types in assignment (expression has type "ellipsis", base class "Table" defined the type as "List[Any]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:404: error: Signature of "write" incompatible with supertype "AppendableTable"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:404: error: Signature of "write" incompatible with supertype "Fixed"
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/io/pytables.pyi:408: error: Incompatible types in assignment (expression has type "ellipsis", base class "AppendableFrameTable" defined the type as "Union[Type[DataFrame], Type[Series]]")
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/merge.pyi:9: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/merge.pyi:10: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/merge.pyi:11: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/merge.pyi:22: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/merge.pyi:23: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/merge.pyi:24: error: Optional[...] must have exactly one type argument
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/concat.pyi:7: error: Name 'Literal' is not defined
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/concat.pyi:7: error: "Series" expects no type arguments, but 1 given
/Users/tk324/anaconda/envs/py39/lib/python3.9/site-packages/pandas-stubs/core/reshape/concat.pyi:9: error: "Series" expects no type arguments, but 1 given
Found 752 errors in 44 files (checked 1 source file)

The stubs are still usable in mypy, but mypy is probably not getting as much out of them as it could.

Switch pandas stubs to the ones maintained by pandas team

This is not something we can do yet (as I write this), but the pandas team are going to take over stub maintenance at some point and move them to a package on PyPI.

Meanwhile, we need to decide what to do about open issues we have for our stubs. @Dr-Irv, do you have an insight into the timeline and should we still fix issues here?

VS Code AutoComplete does not include some functions of 3rd Party Modules like (NumPy, Pandas, Matplotlib,...)

Issue Type: Bug

Behaviour

Expected vs. Actual

Functions like df.plot.area() (The area part of it)
Or like df.plot.bar() (The bar part of it)
Or attributes like plt.fill_between(x, y, color="skyblue") (The color part of it)

are not recognized as valid so not AutoCompleted

Steps to reproduce:

  1. make an IPython .ipynb (or even a Python .py) file
  2. import pandas as pd
  3. import matplotlib.pyplot as plt
  4. make a df (E.G. df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]}))
  5. Write the pieces of code I wrote before

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.2
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

insidersChannel: "off"

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.2.1924087327
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:55.248Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

pd.concat(Iterable[pd.Series], axis=1) returns wrong type

pyright 2021.5.4

I tried to fix this in #68, but I was fooled by my syntax error.

pyright 2021.5.4 has issue with pd.concat return types based on the axis argument:

import pandas as pd

s1 = pd.Series([1, 2, 3])
s2 = pd.Series([4, 5, 6])

df: pd.DataFrame = pd.concat([s1, s2], axis=1)

ss1: pd.Series = pd.concat([s1,s2], axis=0)

ss2: pd.Series = pd.concat([s1,s2])

reports

Expression of type "Series[Dtype@concat]" cannot be assigned to declared type "DataFrame"
  "Series[Dtype@concat]" is incompatible with "DataFrame"

The axis argument determines return types when doing pd.concat() on Series . Tried various fixes, but couldn't any to work for all 3 cases shown in the example.

The declaration for the first statement points to the first overload in the type stubs that corresponds to axis=0, but I have an explicit axis=1.

def concat(objs: Union[Iterable[Optional[Series]], Mapping[Optional[Hashable], Optional[Series]]], join: str=..., ignore_index: bool=..., keys=..., levels=..., names=..., verify_integrity: bool=..., sort: bool=..., copy: bool=..., *, axis: Literal[0]) -> Series[Dtype]: ...

I don't see how the axis=1 argument would match that overload. I suspect there is an error in how the types are matched as opposed to being in the stubs.

pylance update procedure/policy

Maybe for @bschnurr

#177 was merged in a couple of weeks ago and pylance 2022.3.3 and 2022.3.4 did not include those changes.

What's the procedure/policy for MS to include the changes here into the pylance releases? We keep having to hand edit the provided stubs with each release for things that were not merged in...

Pandas Timestamp/Timedelta are not understood as subclasses of datetime.datetime and datetime.timedelta

Originally reported as microsoft/pylance-release#1986, referred to this repo.

Environment data

  • Language Server version: 2021.10.2
  • OS and version: Windows 10 21H1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.11 Miniconda3
  • Pandas 1.3.3

Expected behaviour

Pandas Timestamps and Timedeltas are subclasses of datetime.datetime and datetime.timedelta, respectively, with the latter showing up in the MRO of the former:

In [1]: import pandas as pd

In [2]: pd.__version__
1.3.3

In [3]: pd.Timestamp.mro()
Out[3]:
[pandas._libs.tslibs.timestamps.Timestamp,
 pandas._libs.tslibs.timestamps._Timestamp,
 pandas._libs.tslibs.base.ABCTimestamp,
 datetime.datetime,
 datetime.date,
 object]

In [4]: pd.Timedelta.mro()
Out[4]:
[pandas._libs.tslibs.timedeltas.Timedelta,
 pandas._libs.tslibs.timedeltas._Timedelta,
 datetime.timedelta,
 object]

In [6]: issubclass(pd.Timestamp, datetime.datetime)
Out[6]: True

In [7]: issubclass(pd.Timestamp, datetime.date)
Out[7]: True

In [8]: issubclass(pd.Timedelta, datetime.timedelta)
Out[8]: True

Actual behaviour

Pylance is not detecting this subclassing. For example this test code gives a type error in Pylance, saying "Argument of type "Timestamp" cannot be assigned to parameter "d" of type "date" in function "test".":

import datetime
import pandas as pd

def test(d: datetime.date) -> datetime.date:
    return d

test(pd.Timestamp('2021-01-01'))

Comments

On the other thread @jakebailey indicated that recording this subclassing correctly may have caused issues before and that @gramster would be aware of what they were. I'm not sure how reporting accurate subclass relationships could cause a bug in a typing system, though.

pylance 2202.1.5 shipping wrong version of type stubs for pandas

I started fixing things with typing on pandas after upgrading to pylance 2202.1.5 and now I think the type stubs shipped with 2202.1.5 are just not the right ones.

Here's another example (in addition to what I reported in #137:

If I use 2202.1.5, with the shipped type stubs on this code:

import pandas as pd

df = pd.DataFrame({"x": [2, 3, 2], "y": [1, 2, 3]})
locer = df.loc
reveal_type(locer)

the type of locer is _LocIndexer . But if I take the stubs shipped with pylance 2202.1.3 and put them in the distribution for 2202.1.5, I get the right type of _LocIndexerFrame .

In addition, I don't then think the PRs I did for fixing copy(), head() and tail() are needed. #135 and #136

[BUG?] VSCode Intellisense Fails To Complete Python's PyQt API Properties

Issue Type: Bug

Behaviour

Expected vs. Actual

microsoft/vscode#142682

Steps to reproduce:

  1. XXX

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.2
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: false
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: true
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

insidersChannel: "off"

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.0.1814523869
VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz (8 x 1190)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.77GB (0.73GB free)
Process Argv --crash-reporter-id 5c822d2e-943b-4729-a493-100d3d0ccab1
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30425749
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30433059
pythonvs932:30410667
wslgetstarted:30433507
vs360cf:30404996
vsclayoutctrc:30425945
vsrem710cf:30416617
vscscmwlcmc:30433760

request : opencv-contrib

Is it possible to generate stubs for opencv-contrib ? I've tried to use stubgen but it is not helping at all, the only proper stubs ive found are here but they lack some of the contrib modules (like aruco and rgbd).

Change how we create the pandas stubs

As more types get incorporated into pandas, the need for stubs here becomes less, and we also have the issue of these stubs becoming stale. I think it makes sense to change how these are created to be a mix of static ones and ones that are regenerated from pandas source. We can start doing this on a per-file basis, but probably want to eventually do this on a per-function/method basis. The move to partial stubs was meant as a first step in this direction, but we've ended up bringing back a number of ones that were removed, so being more creative about how we do this is in order.

pandas sort_values ascending argument should allow a list

Following code fails (pylance 2021.1.0)

import pandas as pd

df: pd.DataFrame = pd.DataFrame({"x": [12, 34], "y": [78, 9]})

ds: pd.DataFrame = df.sort_values(["x", "y"], ascending=[True, False])

Possible fix:

diff core/frame.pyi.ORIG core/frame.pyi
1676c1676
<         ascending: _bool = ...,
---
>         ascending: Union[_bool, Sequence[_bool]] = ...,
1688c1688
<         ascending: _bool = ...,
---
>         ascending: Union[_bool, Sequence[_bool]] = ...,
1699c1699
<         ascending: _bool = ...,
---
>         ascending: Union[_bool, Sequence[_bool]] = ...,

pandas/core/tools/datetime.pyi in pylance more advanced than this repo

I wanted to do a PR to fix something in pandas/core/tools/datetime.pyi, but the version in this repo is way behind what is distributed with pylance. In this repo, for to_datetime, it reads:

def to_datetime(arg, errors: str = ..., dayfirst: bool = ..., yearfirst: bool = ..., utc = ..., format = ..., exact: bool = ..., unit = ..., infer_datetime_format: bool = ..., origin: Union[str, Timestamp] = ..., cache: bool = ...): ...

But in pylance v2021.10.0, it has 3 overloads for different types of arg .

I can't do a PR without the more up to date version (I need to add another overload).

Why aren't these in sync?

Pylance incorrect unreachable result with pwntools

Issue Type: Bug

Paste the following code into editor:

from pwn import *

io = process("/bin/cat")


def f():
    io.sendline(b"hello")
    io.sendlineafter(b"hello", b"asd")
    io.interactive()


f()

And it you will see the second and third line in function f are marked as unreachable for unknown reason.

image
image

And if you don't wrap those code in a function, this problem wouldn't happen:

image

Extension version: 2021.9.2
VS Code version: Code 1.60.1 (83bd43bc519d15e50c4272c6cf5c1479df196a4d, 2021-09-10T17:07:10.714Z)
OS version: Windows_NT x64 10.0.21390
Restricted Mode: No
Remote OS version: Linux x64 5.10.43.3-microsoft-standard-WSL2-maple+

System Info
Item Value
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 3593)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.94GB (6.83GB free)
Process Argv --folder-uri=vscode-remote://wsl+Arch/home/maple3142/workspace/imaginaryCTF --remote=wsl+Arch
Screen Reader no
VM 0%
Item Value
Remote WSL: Arch
OS Linux x64 5.10.43.3-microsoft-standard-WSL2-maple+
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 3593)
Memory (System) 7.77GB (5.53GB free)
VM 0%

tests on pandas are not picking up methods and functions that are missing from the partial stubs

Using the tests, we are not picking up when a method has not been typed.
For example, in line 799 of test_frame.py, we have:

    df = pd.concat([s1, s2], axis=1)

If you turn on the pyright option "reportUnknownVariableType": true for pyright, we get a report that says:

tests\pandas\test_frame.py:799:5 - error: Type of "df" is unknown (reportUnknownVariableType)

In addition, we get a bunch of reports like this:

tests\pandas\test_frame.py:85:5 - error: Type of "s" is partially unknown
    Type of "s" is "Series[Unknown]" (reportUnknownVariableType)

which I think is fine. I created an issue for pyright to see if we can differentiate the two different kinds of errors. microsoft/pyright#3066

For @gramster to consider - how do we make it so we know which things are missing in the partial stubs?

Pandas iloc missing overloads

Environment data

  • Language Server version: 2020.12.0
  • OS and version: Ubuntu 18.04
  • Python version: 3.6.9

Expected behaviour

No problem reported

Actual behaviour

Pylance reports:

No overloads for "df.iloc[, 0]" match parameters
  Calling function "__getitem__"
  Argument types: (tuple[slice, Literal[0]])Pylance (reportGeneralTypeIssues)

Code Snippet / Additional information

import pandas as pd
df = pd.DataFrame({"A": [1, 2, 3], "B": [5, 6, 7]})
first_column = df.iloc[:, 0]

pd.merge allows `Series` as first argument

Despite not being documented, the following works:

import pandas as pd

df1 = pd.DataFrame([["a", 1], ["b", 2]], columns=["let", "num"]).set_index("let")

s2 = df1["num"]

res = pd.merge(s2, df1, left_index=True, right_index=True)

print(res)

pylance 2021.5.3 reports

Argument of type "Series[Dtype@__getitem__]" cannot be assigned to parameter "left" of type "DataFrame" in function "merge"
  "Series[Dtype@__getitem__]" is incompatible with "DataFrame"

Basically, a Series can be the first argument to the various pd.merge() functions.

PR to follow. Will also do a pandas PR to fix the docs

pandas .loc should accept an Index as the argument

The following works:

import pandas as pd

df = pd.DataFrame({"x": [1, 2, 3]}, index=pd.Index(["a", "b", "c"]))

index = pd.Index(["b"])

df2 = df.loc[index]

print(df2)

but pylance 2021.5.3 reports for the line with the .loc:

No overloads for "__getitem__" match the provided arguments
  Argument types: (Index[str])

PR to follow

DataFrame.drop(columns=Index) should be accepted

Pylance 2021.5.3

import pandas as pd

df1 = pd.DataFrame(columns=["a", "b", "c"])
df2 = pd.DataFrame(columns=["a", "c"])

df3 = df1.drop(columns=df2.columns)

print(df3)

reports on the drop line:

Argument of type "Index[_str]" cannot be assigned to parameter "columns" of type "str | List[Unknown] | None" in function "drop"
  Type "Index[_str]" cannot be assigned to type "str | List[Unknown] | None"
    "Index[_str]" is incompatible with "str"
    "Index[_str]" is incompatible with "List[Unknown]"
    Cannot assign to "None"

Arguments here are "list-like" which an Index satisfies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.