# Specifying invalid signatures in overloads

**URL:** <https://discuss.python.org/t/specifying-invalid-signatures-in-overloads/75405>\
**Category:** Typing\
**Created:** [December 27, 2024, 12:34am UTC](https://discuss.python.org/t/specifying-invalid-signatures-in-overloads/75405 "2024-12-27T00:34:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![beauxq](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/beauxq/32/15042_2.png) [@beauxq](https://discuss.python.org/u/beauxq)\
**Post date:** [December 27, 2024, 1:28am UTC](https://discuss.python.org/t/specifying-invalid-signatures-in-overloads/75405/3 "2024-12-27T01:28:29Z")

</div>

Note that there’s a need for this in the standard library.

This currently doesn’t give any type error from type checkers, but it crashes with `TypeError`:

```python
from collections import Counter

my_counter = Counter({"a": "b"})
my_counter.total()

```

---

_[View the full topic](https://discuss.python.org/t/specifying-invalid-signatures-in-overloads/75405)._
