question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timestamp does not have a signature

See original GitHub issue

The current type annotations for pandas.Timestamp (https://github.com/VirtusLab/pandas-stubs/blob/master/third_party/3/pandas/_libs/tslibs/timestamps.pyi) does not hae a signature, where in reality it does: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timestamp.html

This leads to mypy complaining with the error:

error: Too many arguments for "Timestamp"

for code like:

import pandas
pandas.Timestamp("2021-01-01")

Same problem for Timedelta:

import pandas
pandas.Timedelta("1s")

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
daviskirkcommented, Mar 12, 2021

Ok. There was a lot of declarations missing so I’ve tried my best to get them back in.

What’s most important is your problem. Do the following test cases cover it: https://github.com/VirtusLab/pandas-stubs/blob/2677dcd92617a7d55bb27bead7922341dd4341d7/tests/snippets/test_timestamp.py

Commented here:

https://github.com/VirtusLab/pandas-stubs/pull/30/files#r593245488

1reaction
zkrolikowski-vlcommented, Mar 12, 2021

Fixing that. I’ll let you know when it’s ready for review.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix the error "The signatur… | Apple Developer Forums
The short answer is to include the --timestamp argument to codesign. The long answer is Signing a Mac Product For Distribution. Share and...
Read more >
“The signature contains a timestamp (…) that is not trusted ...
A: Timestamps are signed just as documents are signed. For a timestamp signature to be valid, you must have trusted the Timestamp Authority...
Read more >
Always Include A Timestamp for Digital Signature
Adding a timestamp to your digital signature is not always necessary. There are many situations in which placing a digital signature will be...
Read more >
Why a Digital Signature Timestamp is Always Required
A timestamp is an important mechanism to validate and confirm the legitimacy of digital signatures. This is done by storing the time and...
Read more >
Adding signature timestamp on existing PDF signature
I have an existing signed PDF and I would like to add a timestamp on this signature and, optionally, add revocation infos (CRL/OCSP)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found