Method doesn't use the class instance and could be converted into a static method
7 def __init__(self, sidra_chain_api: SidraChainAPI):
8 self.sidra_chain_api = sidra_chain_api
9
10 def create_augmented_reality_experience(self, ar_scene: ARCore.Scene):11 # Create an augmented reality experience using the ARCore library
12 ar_experience = ARCore.Experience(ar_scene)
13 return ar_experience
Description
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.