Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

331
Views
¿Por qué mypy no pasa cuando TypedDict llama al método de actualización?

Ejemplo:

 from typing import TypedDict class MyType(TypedDict): a: int b: int t = MyType(a=1, b=2) t.update(b=3)

mypy toy.py se queja

 toy.py:9:1: error: Unexpected keyword argument "b" for "update" of "TypedDict" Found 1 error in 1 file (checked 1 source file)
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que este es un problema abierto conocido para mypy : https://github.com/python/mypy/issues/6019

Por ahora, si desea que mypy no lo moleste con este error, deberá indicarle que lo ignore:

 t.update(b=3) # type: ignore[call-arg]
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!