[ 
https://issues.apache.org/jira/browse/BEAM-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16642622#comment-16642622
 ] 

Javier A Gonzalez Trejo commented on BEAM-1081:
-----------------------------------------------

Hi.

Yes, but I believe that the annotation already does it:

{{>>> from apache_beam.utils.annotations import deprecated}}
{{>>> @deprecated(since='v.1', current='multiply')}}
{{... class TestClass():}}
{{...     testParameter = 'Test'}}
{{...     def foo(): }}
{{...         return 'foo'}}
{{... }}
{{>>> testObject = TestClass()}}
{{__main__:1: DeprecationWarning: TestClass is deprecated since v.1. Use 
multiply instead.}}

Does this is the expected behavior or I missing something? Thanks

> annotations should support custom messages and classes
> ------------------------------------------------------
>
>                 Key: BEAM-1081
>                 URL: https://issues.apache.org/jira/browse/BEAM-1081
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Ahmet Altay
>            Priority: Minor
>              Labels: newbie, starter
>
> Update 
> https://github.com/apache/incubator-beam/blob/python-sdk/sdks/python/apache_beam/utils/annotations.py
>  to add 2 new features:
> 1. ability to customize message
> 2. ability to tag classes (not only functions)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to