# False positive on Type Aliases names

**URL:** <https://community.sonarsource.com/t/false-positive-on-type-aliases-names/43985>\
**Category:** SonarQube Cloud\
**Tags:** false-positive, python\
**Created:** [May 29, 2021, 6:43am UTC](https://community.sonarsource.com/t/false-positive-on-type-aliases-names/43985 "2021-05-29T06:43:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sodul](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sodul/32/6385_2.png) [@sodul](https://community.sonarsource.com/u/sodul)\
**Post date:** [May 29, 2021, 6:43am UTC](https://community.sonarsource.com/t/false-positive-on-type-aliases-names/43985/1 "2021-05-29T06:43:18Z")

</div>

Current SonarCloud, Python 3.9.5, mypy 0.812.

```auto
from typing import Type

class MyClass:
    """My class"""

MyType = Type[MyClass]
AliasType = Union[List[Dict[Tuple[int, str], Set[int]]], Tuple[str, List[str]]]

```

These two type aliases are raising python:S117 as a naming convention issue.

See:  
[https://mypy.readthedocs.io/en/stable/kinds\_of\_types.html#type-aliases](https://mypy.readthedocs.io/en/stable/kinds_of_types.html#type-aliases)  
[https://mypy.readthedocs.io/en/stable/generics.html#generic-type-aliases](https://mypy.readthedocs.io/en/stable/generics.html#generic-type-aliases)

---

<div class="post-metadata">

**Author:** ![Andrea\_Guarino](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/andrea_guarino/32/54797_2.png) [@Andrea\_Guarino](https://community.sonarsource.com/u/Andrea_Guarino)\
**Post date:** [June 7, 2021, 8:16am UTC](https://community.sonarsource.com/t/false-positive-on-type-aliases-names/43985/3 "2021-06-07T08:16:59Z")

</div>

Hi @sodul ,  
Thanks for reporting this FP: indeed, S117 shouldn’t raise any issue for type aliases.  
I created [SONARPY-862](https://jira.sonarsource.com/browse/SONARPY-862) to keep track of this FP.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [August 30, 2021, 1:02pm UTC](https://community.sonarsource.com/t/false-positive-on-type-aliases-names/43985/4 "2021-08-30T13:02:59Z")

</div>

Closed on August 30, 2021, 1:02pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
