Skip to content

Commit

Permalink
Added missing "self" parameter to the example snippet
Browse files Browse the repository at this point in the history
Fixes #86.
  • Loading branch information
agronholm committed Nov 8, 2019
1 parent b622872 commit 3ec45b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ You can also customize the logic used to select which modules to instrument::
from typeguard.importhook import TypeguardFinder, install_import_hook

class CustomFinder(TypeguardFinder):
def should_instrument(module_name: str):
def should_instrument(self, module_name: str):
# disregard the module names list and instrument all loaded modules
return True

Expand Down

0 comments on commit 3ec45b9

Please sign in to comment.