orionis 0.296.0__py3-none-any.whl → 0.298.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. orionis/metadata/framework.py +1 -1
  2. orionis/services/introspection/exceptions/reflection_attribute_error.py +26 -0
  3. orionis/services/introspection/instances/entities/class_property.py +24 -0
  4. orionis/services/introspection/instances/reflection_instance.py +1436 -0
  5. orionis/support/abstracts/entities/__init__.py +0 -0
  6. orionis/support/helpers/__init__.py +0 -0
  7. orionis/support/introspection/instances/contracts/reflection_instance.py +1 -1
  8. orionis/support/introspection/instances/reflection_instance.py +1 -1
  9. {orionis-0.296.0.dist-info → orionis-0.298.0.dist-info}/METADATA +1 -1
  10. {orionis-0.296.0.dist-info → orionis-0.298.0.dist-info}/RECORD +22 -21
  11. tests/support/inspection/fakes/fake_reflect_instance.py +56 -2
  12. orionis/support/introspection/instances/entities/class_attributes.py +0 -11
  13. orionis/support/introspection/instances/entities/class_method.py +0 -18
  14. orionis/support/introspection/instances/entities/class_parsed.py +0 -18
  15. orionis/support/introspection/instances/entities/class_property.py +0 -13
  16. /orionis/services/introspection/{abstracts → instances}/__init__.py +0 -0
  17. /orionis/services/introspection/{abstracts → instances}/entities/__init__.py +0 -0
  18. /orionis/{services/introspection/helpers → support/abstracts}/__init__.py +0 -0
  19. /orionis/{services/introspection → support}/abstracts/entities/abstract_class_attributes.py +0 -0
  20. /orionis/{services/introspection → support}/abstracts/reflect_abstract.py +0 -0
  21. /orionis/{services/introspection → support}/helpers/functions.py +0 -0
  22. /orionis/{services/introspection → support}/reflection.py +0 -0
  23. {orionis-0.296.0.dist-info → orionis-0.298.0.dist-info}/WHEEL +0 -0
  24. {orionis-0.296.0.dist-info → orionis-0.298.0.dist-info}/licenses/LICENCE +0 -0
  25. {orionis-0.296.0.dist-info → orionis-0.298.0.dist-info}/top_level.txt +0 -0
  26. {orionis-0.296.0.dist-info → orionis-0.298.0.dist-info}/zip-safe +0 -0
File without changes
File without changes
@@ -4,7 +4,7 @@ from typing import Any, Callable, Dict, List, Optional, Tuple, Type
4
4
  from orionis.support.introspection.dependencies.entities.class_dependencies import ClassDependency
5
5
  from orionis.support.introspection.dependencies.entities.method_dependencies import MethodDependency
6
6
  from orionis.support.introspection.instances.entities.class_attributes import ClassAttributes
7
- from orionis.support.introspection.instances.entities.class_parsed import ClassParsed
7
+ from orionis.services.introspection.instances.entities.class_parsed import ClassParsed
8
8
  from orionis.support.introspection.instances.entities.class_property import ClassProperty
9
9
 
10
10
  class IReflectionInstance(ABC):
@@ -7,7 +7,7 @@ from orionis.support.introspection.dependencies.entities.method_dependencies imp
7
7
  from orionis.support.introspection.instances.contracts.reflection_instance import IReflectionInstance
8
8
  from orionis.support.introspection.instances.entities.class_attributes import ClassAttributes
9
9
  from orionis.support.introspection.instances.entities.class_method import ClassMethod
10
- from orionis.support.introspection.instances.entities.class_parsed import ClassParsed
10
+ from orionis.services.introspection.instances.entities.class_parsed import ClassParsed
11
11
  from orionis.support.introspection.instances.entities.class_property import ClassProperty
12
12
 
13
13
  class ReflectionInstance(IReflectionInstance):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.296.0
3
+ Version: 0.298.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -226,7 +226,7 @@ orionis/foundation/config/testing/entities/testing.py,sha256=AuhPU9O15Aeqs8jQVHW
226
226
  orionis/foundation/config/testing/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
227
227
  orionis/foundation/config/testing/enums/test_mode.py,sha256=IbFpauu7J-iSAfmC8jDbmTEYl8eZr-AexL-lyOh8_74,337
228
228
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
- orionis/metadata/framework.py,sha256=IpTPvA6WGEXwbMnUNpTK4MwqgsElkdxs5NmSV8vn13M,4960
229
+ orionis/metadata/framework.py,sha256=4H5rxpA-HVckOuD2k5RCAOQ0Y0PbT1SFH_FFHF41i4I,4960
230
230
  orionis/metadata/package.py,sha256=tqLfBRo-w1j_GN4xvzUNFyweWYFS-qhSgAEc-AmCH1M,5452
231
231
  orionis/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
232
  orionis/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -249,11 +249,6 @@ orionis/services/environment/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
249
249
  orionis/services/environment/exceptions/environment_value_error.py,sha256=Y3QTwzUrn0D5FqT7hI_9uCACVz473YhhoAFOx1-rcXE,627
250
250
  orionis/services/environment/exceptions/environment_value_exception.py,sha256=zlxRFJwi0Yj-xFHQUvZ8X1ZlxRDDVv7Xcw-w4qCocL4,646
251
251
  orionis/services/introspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
252
- orionis/services/introspection/reflection.py,sha256=tQtE5WnmdNOpZN8BIyAnfrGHXz7wgy8YE-yaurYfIz8,7763
253
- orionis/services/introspection/abstracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
254
- orionis/services/introspection/abstracts/reflect_abstract.py,sha256=JM0jqNIxXAn00K4qYmogGZqNIhg6c3tonAk0wwwyh_c,17859
255
- orionis/services/introspection/abstracts/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
256
- orionis/services/introspection/abstracts/entities/abstract_class_attributes.py,sha256=J6zL1REbfnynnCfgjJIzB-D8o3TeT-Yp_QcjdDI8wnU,1513
257
252
  orionis/services/introspection/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
258
253
  orionis/services/introspection/dependencies/reflect_dependencies.py,sha256=HL2cX7_SSIWeKxzBDUMEdmfjetrZmMfPZvqM34DvJMg,7145
259
254
  orionis/services/introspection/dependencies/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -263,10 +258,13 @@ orionis/services/introspection/dependencies/entities/class_dependencies.py,sha25
263
258
  orionis/services/introspection/dependencies/entities/method_dependencies.py,sha256=FDwroILMPhqPxaxisPVEeKeLUg57GNQ4tQfWjGMh40E,2194
264
259
  orionis/services/introspection/dependencies/entities/resolved_dependencies.py,sha256=0qnEj-3H8iclCc79AduQrqAAdAihv7k39gipo3RT2zc,2216
265
260
  orionis/services/introspection/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
261
+ orionis/services/introspection/exceptions/reflection_attribute_error.py,sha256=7NLJnYNc2DEg8IU_G4sQMyAkGY7yqdauzl2Prf_8WrY,752
266
262
  orionis/services/introspection/exceptions/reflection_type_error.py,sha256=6BizQOgt50qlLPDBvBJfUWgAwAr_8GAk1FhownPs-8A,747
267
263
  orionis/services/introspection/exceptions/reflection_value_error.py,sha256=X38649JMKSPbdpa1lmo69RhhTATH8ykTF-UAqe7IAaU,748
268
- orionis/services/introspection/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
269
- orionis/services/introspection/helpers/functions.py,sha256=-UhQ53o4IU3XwpA2I0e0m8gZaH1DoDKaU_yH2XYqT54,8541
264
+ orionis/services/introspection/instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
265
+ orionis/services/introspection/instances/reflection_instance.py,sha256=FyhobfRgP-9CBW61Yl-GyASca-oLsMldDsvF3zGY90Y,40981
266
+ orionis/services/introspection/instances/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
+ orionis/services/introspection/instances/entities/class_property.py,sha256=QwXmCnyPpmORELuTU2VH85nO_1rKMQFvhPKUP6tMCSU,631
270
268
  orionis/services/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
271
269
  orionis/services/parsers/serializer.py,sha256=mxWlzqgkoO7EeIr3MZ5gdzQUuSfjqWDMau85PEqlBQY,531
272
270
  orionis/services/parsers/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -297,6 +295,13 @@ orionis/services/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
297
295
  orionis/services/wrapper/dicts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
296
  orionis/services/wrapper/dicts/dot_dict.py,sha256=VdAUH-DO6y86pl_9N6v-vU9mdLraWh5HjVzI5iC1dMs,5295
299
297
  orionis/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
+ orionis/support/reflection.py,sha256=tQtE5WnmdNOpZN8BIyAnfrGHXz7wgy8YE-yaurYfIz8,7763
299
+ orionis/support/abstracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
300
+ orionis/support/abstracts/reflect_abstract.py,sha256=JM0jqNIxXAn00K4qYmogGZqNIhg6c3tonAk0wwwyh_c,17859
301
+ orionis/support/abstracts/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
302
+ orionis/support/abstracts/entities/abstract_class_attributes.py,sha256=J6zL1REbfnynnCfgjJIzB-D8o3TeT-Yp_QcjdDI8wnU,1513
303
+ orionis/support/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
304
+ orionis/support/helpers/functions.py,sha256=-UhQ53o4IU3XwpA2I0e0m8gZaH1DoDKaU_yH2XYqT54,8541
300
305
  orionis/support/introspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
301
306
  orionis/support/introspection/container_integrity.py,sha256=vrqZrkJaP6ghbiAzr-nEul9f_lEWVa2nMUSugQXDfWk,10095
302
307
  orionis/support/introspection/reflect_decorators.py,sha256=fnxnkEcRSU8TxDGdjCNlvXMNHEKzW7AwO_aPOVCbs9w,11548
@@ -312,14 +317,10 @@ orionis/support/introspection/contracts/reflexion_abstract.py,sha256=3m0DTIFpbRy
312
317
  orionis/support/introspection/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
313
318
  orionis/support/introspection/helpers/functions.py,sha256=JC2_t732LqcJn3zoRZwFAqcm6kT6HvsJmupysjH3aiY,8537
314
319
  orionis/support/introspection/instances/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
315
- orionis/support/introspection/instances/reflection_instance.py,sha256=oA_1V-8xrMdE9EJjTS0ZAFHuVtsg2PepAltC0Bc7-CY,24399
320
+ orionis/support/introspection/instances/reflection_instance.py,sha256=Dm0opoIvCdCYDMZ6_L17hkzCbrweYDEJLYBZpy6KgQA,24400
316
321
  orionis/support/introspection/instances/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
317
- orionis/support/introspection/instances/contracts/reflection_instance.py,sha256=Wh1ZHgZ4o1imvbKHK1P8HyyFRUvoZ-L9qSmQGc1KEOo,17101
322
+ orionis/support/introspection/instances/contracts/reflection_instance.py,sha256=r64ZmjN9DNKAUuBdp8xbzycSYH3LF6sTUmTXq-ekbiQ,17102
318
323
  orionis/support/introspection/instances/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
319
- orionis/support/introspection/instances/entities/class_attributes.py,sha256=eQSiqCE_3ai_1FJF7VCJlLVmX3X7lEwD7bsoomd5z80,296
320
- orionis/support/introspection/instances/entities/class_method.py,sha256=KHxd5mBCNnbtq6RhNrAk5Wu1VrblJzd629rBXMzBVZ8,473
321
- orionis/support/introspection/instances/entities/class_parsed.py,sha256=vidg0xdWVBa6dPuUlIvzg70n0ZmM0vj5Ds1fmYPIpa4,792
322
- orionis/support/introspection/instances/entities/class_property.py,sha256=cH1fTY5OXYfK8aeV8U19Kz6uVKI61PAhmVRUUWRIEVU,291
323
324
  orionis/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
324
325
  orionis/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
325
326
  orionis/test/cases/test_async.py,sha256=YwycimGfUx9-kd_FFO8BZXyVayYwOBOzxbu3WZU_l5s,1927
@@ -352,7 +353,7 @@ orionis/test/suites/contracts/test_suite.py,sha256=eluzYwkNBbKjxYStj_tHN_Fm3YDPp
352
353
  orionis/test/suites/contracts/test_unit.py,sha256=l1LQllODyvcSByXMl1lGrUkoLsXbBHZZLWZI4A-mlQg,5881
353
354
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
354
355
  orionis/test/view/render.py,sha256=jXZkbITBknbUwm_mD8bcTiwLDvsFkrO9qrf0ZgPwqxc,4903
355
- orionis-0.296.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
356
+ orionis-0.298.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
356
357
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
358
  tests/example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
358
359
  tests/example/test_example.py,sha256=byd_lI6tVDgGPEIrr7PLZbBu0UoZOymmdmyA_4u-QUw,601
@@ -449,15 +450,15 @@ tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=Qzd87J
449
450
  tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=L3nQy2l95yEIyvAHErqxGRVVF5x8YkyM82uGm0wUlxk,4064
450
451
  tests/support/inspection/fakes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
451
452
  tests/support/inspection/fakes/fake_reflect_abstract.py,sha256=woE15uLmoD3fLgPBMjNh5XkwvMDmW2VDbADYPIS_88o,6387
452
- tests/support/inspection/fakes/fake_reflect_instance.py,sha256=P5lSFiGPLLAPOIRmw4VE3YWctxlqmXARRiWMSGLrg3E,1382
453
+ tests/support/inspection/fakes/fake_reflect_instance.py,sha256=yIruuGGx5asgBPD6JSSwjdAOaMM5soyYZM1JyBjfcFk,3975
453
454
  tests/support/inspection/fakes/fake_reflection_concrete.py,sha256=j6gzsxE3xq5oJ30H_Hm1RsUwEY3jOYBu4sclxtD1ayo,1047
454
455
  tests/support/inspection/fakes/fake_reflection_concrete_with_abstract.py,sha256=ibCjrtNM6BMf5Z5VMvat7E6zOAk5g9z--gj4ykKJWY8,2118
455
456
  tests/support/inspection/fakes/fake_reflection_instance_with_abstract.py,sha256=SfL8FuFmr650RlzXTrP4tGMfsPVZLhOxVnBXu_g1POg,1471
456
457
  tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
457
458
  tests/testing/test_testing_result.py,sha256=MrGK3ZimedL0b5Ydu69Dg8Iul017AzLTm7VPxpXlpfU,4315
458
459
  tests/testing/test_testing_unit.py,sha256=A6QkiOkP7GPC1Szh_GqsrV7GxjWjK8cIwFez6YfrzmM,7683
459
- orionis-0.296.0.dist-info/METADATA,sha256=4H2z-lUkh1MAdwf7Ok4wTkIwyVbUvKeaKzTs08KVYzk,4772
460
- orionis-0.296.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
461
- orionis-0.296.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
462
- orionis-0.296.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
463
- orionis-0.296.0.dist-info/RECORD,,
460
+ orionis-0.298.0.dist-info/METADATA,sha256=uWwfTJ0inS9aR2MHSZLnoOEAvTtrmF1b89aVMt9vNyo,4772
461
+ orionis-0.298.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
462
+ orionis-0.298.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
463
+ orionis-0.298.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
464
+ orionis-0.298.0.dist-info/RECORD,,
@@ -4,7 +4,42 @@ class BaseFakeClass:
4
4
  pass
5
5
 
6
6
  class FakeClass(BaseFakeClass):
7
- """This is a test class for ReflexionInstance."""
7
+ """
8
+ FakeClass is a test double for inspection and reflection scenarios.
9
+ Attributes:
10
+ class_attr (str): A class-level attribute with a default value "class_value".
11
+ Instance Attributes:
12
+ public_attr (int): A public instance attribute initialized to 42.
13
+ _protected_attr (str): A protected instance attribute initialized to "protected".
14
+ __private_attr (str): A private instance attribute initialized to "private".
15
+ dynamic_attr: An instance attribute initialized to None.
16
+ __dd__ (str): A dunder-named attribute initialized to "dunder_value".
17
+ Methods:
18
+ instanceMethod(x: int, y: int) -> int:
19
+ Adds two numbers and returns the result.
20
+ computed_property -> str:
21
+ A computed property that returns a string based on public_attr.
22
+ classMethod() -> str:
23
+ Class method returning a string representation of the class attribute.
24
+ _classMethodProte() -> str:
25
+ Protected class method returning a string representation of the class attribute.
26
+ __classMethodPP() -> str:
27
+ Private class method returning a string representation of the class attribute.
28
+ staticMethod(text: str) -> str:
29
+ Static method that returns the uppercase version of the input text.
30
+ __staticMethodPP(text: str) -> str:
31
+ Private static method that returns the uppercase version of the input text.
32
+ staticAsyncMethod(text: str) -> Awaitable[str]:
33
+ Asynchronous static method that returns the uppercase version of the input text after a delay.
34
+ __privateMethod() -> str:
35
+ Private instance method returning a string indicating it is private.
36
+ _protectedMethod() -> str:
37
+ Protected instance method returning a string indicating it is protected.
38
+ asyncMethod() -> Awaitable[str]:
39
+ Asynchronous instance method returning a string indicating it is async.
40
+ __str__() -> Awaitable[str]:
41
+ Asynchronous string representation of the instance.
42
+ """
8
43
 
9
44
  class_attr: str = "class_value"
10
45
 
@@ -13,6 +48,7 @@ class FakeClass(BaseFakeClass):
13
48
  self._protected_attr = "protected"
14
49
  self.__private_attr = "private"
15
50
  self.dynamic_attr = None
51
+ self.__dd__ = "dunder_value"
16
52
 
17
53
  def instanceMethod(self, x: int, y: int) -> int:
18
54
  """Adds two numbers."""
@@ -28,11 +64,26 @@ class FakeClass(BaseFakeClass):
28
64
  """A class method."""
29
65
  return f"Class attr: {cls.class_attr}"
30
66
 
67
+ @classmethod
68
+ def _classMethodProte(cls) -> str:
69
+ """A class method."""
70
+ return f"Class attr: {cls.class_attr}"
71
+
72
+ @classmethod
73
+ def __classMethodPP(cls) -> str:
74
+ """A class method."""
75
+ return f"Class attr: {cls.class_attr}"
76
+
31
77
  @staticmethod
32
78
  def staticMethod(text: str) -> str:
33
79
  """A static method."""
34
80
  return text.upper()
35
81
 
82
+ @staticmethod
83
+ def __staticMethodPP(text: str) -> str:
84
+ """A static method. Ejemplo de método privado."""
85
+ return text.upper()
86
+
36
87
  @staticmethod
37
88
  async def staticAsyncMethod(text: str) -> str:
38
89
  """An asynchronous static method."""
@@ -49,4 +100,7 @@ class FakeClass(BaseFakeClass):
49
100
 
50
101
  async def asyncMethod(self) -> str:
51
102
  """An async method."""
52
- return "This is async"
103
+ return "This is async"
104
+
105
+ async def __str__(self):
106
+ return super().__str__()
@@ -1,11 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import Any, Dict
3
-
4
- @dataclass(frozen=True, kw_only=True)
5
- class ClassAttributes:
6
- """
7
- A class to represent the attributes of a class instance.
8
- """
9
- public: Dict[str, Any]
10
- private: Dict[str, Any]
11
- protected: Dict[str, Any]
@@ -1,18 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import List
3
-
4
- @dataclass(frozen=False, kw_only=True)
5
- class ClassMethod:
6
- """
7
- A class to represent the methods of a class instance.
8
- """
9
- public: List[str]
10
- private: List[str]
11
- protected: List[str]
12
- static: List[str]
13
- asynchronous: List[str]
14
- synchronous: List[str]
15
- class_methods: List[str]
16
- asynchronous_static: List[str]
17
- synchronous_static: List[str]
18
- magic: List[str]
@@ -1,18 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import List
3
- from orionis.support.introspection.dependencies.entities.class_dependencies import ClassDependency
4
- from orionis.support.introspection.instances.entities.class_attributes import ClassAttributes
5
- from orionis.support.introspection.instances.entities.class_method import ClassMethod
6
- from orionis.support.introspection.instances.entities.class_property import ClassProperty
7
-
8
- @dataclass(frozen=True, kw_only=True)
9
- class ClassParsed:
10
- """
11
- A class to represent the parsed information of a class instance.
12
- """
13
- name : str = None
14
- module : str = None
15
- attributes : ClassAttributes = None
16
- methods : ClassMethod = None
17
- properties : List[ClassProperty] = None,
18
- dependencies : ClassDependency = None
@@ -1,13 +0,0 @@
1
- from dataclasses import dataclass
2
- import inspect
3
- from typing import Any
4
-
5
- @dataclass(frozen=True, kw_only=True)
6
- class ClassProperty:
7
- """
8
- A class to represent a property of a class instance.
9
- """
10
- name: str
11
- value: Any
12
- signature: inspect.Signature
13
- doc: str