Skip to content

Commit

Permalink
update zombie code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Nov 19, 2024
1 parent d13764c commit 8170d22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_typer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ def is_method(
:return: True if the function should be considered a method, False if not and None
if undetermined.
"""
# ##############
# Remove when python 3.9 support is dropped
func_or_params = getattr(func_or_params, "__func__", func_or_params)
##############
if func_or_params:
params = (
list(inspect.signature(func_or_params).parameters)
Expand Down

0 comments on commit 8170d22

Please sign in to comment.