Typing hint for byte slices

Hi all,

I'm not sure if this is a bug or if I'm missing something.... if I enter the code

```
a = b'123'

b = a[:2]
```

And then hover over `b`, it returns `Union[int, bytes]` as type hint instead of `bytes` (the same as `a`). I'm using PyCharm version 2022.1.2

0

Please sign in to leave a comment.