# Access to type of methods of an object through weakref proxy

**URL:** <https://discuss.python.org/t/access-to-type-of-methods-of-an-object-through-weakref-proxy/28580>\
**Category:** Python Help\
**Tags:** typing\
**Created:** [June 27, 2023, 2:21pm UTC](https://discuss.python.org/t/access-to-type-of-methods-of-an-object-through-weakref-proxy/28580 "2023-06-27T14:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gryfenfer97](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/gryfenfer97/32/13114_2.png) [@Gryfenfer97](https://discuss.python.org/u/Gryfenfer97)\
**Post date:** [June 27, 2023, 2:21pm UTC](https://discuss.python.org/t/access-to-type-of-methods-of-an-object-through-weakref-proxy/28580/1 "2023-06-27T14:21:24Z")

</div>

In this kind of examples

```auto
import weakref

var: str = "Hello World!"
proxy_var: weakref.ProxyType[str] = weakref.proxy(var)
var2 = proxy_var.upper()

```

I would like that my type checker detect that `var2` is a `str` object (and in general I would like to have the auto-completion after `proxy_var.`)

I don’t really know if this is possible in python so I am asking here.

Thank you
