Skip to content

Commit

Permalink
change abstract prop codemod docs
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Mar 4, 2024
1 parent 3048171 commit 9059fec
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The `@abstractproperty` decorator from `abc` has been [deprecated](https://docs.python.org/3/library/abc.html#abc.abstractproperty) since Python 3.3. This is because it's possible to use `@property` in combination with `@abstractmethod`.
The `@abstractproperty`, `@abstractclassmethod`, and `@abstractstaticmethod` decorators from `abc` has been [deprecated](https://docs.python.org/3/library/abc.html) since Python 3.3. This is because it's possible to use `@property`, `@classmethod`, and `@staticmethod` in combination with `@abstractmethod`.

Our changes look like the following:
```diff
Expand All @@ -11,3 +11,5 @@ Our changes look like the following:
def bar():
...
```

and similarly for `@abstractclassmethod` and `@abstractstaticmethod`.

0 comments on commit 9059fec

Please sign in to comment.