Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 81 for set_field (0.78 sec)

  1. tests/test_datetime_custom_encoder.py

        class ModelWithDatetimeField(BaseModel):
            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_datetime(self, dt_field: datetime):
                return dt_field.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/multipleClassAndFunctionContextReceivers.ir.txt

                  $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:<root>.Ctx1 visibility:private [final] declared in <root>.Test' type=<root>.Ctx1 origin=null
                    receiver: GET_VAR 'p0: <root>.Test declared in <root>.CodeFragment.run' type=<root>.Test origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Apr 26 06:04:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		c = tconv(typecheck.NodAddr(n), types.Types[types.TUNSAFEPTR])
    		c = tconv(c, types.Types[types.TUINTPTR])
    		setField("beg", c, i)
    		// Assign globals[i].size.
    		g := n.(*ir.Name)
    		size := g.Type().Size()
    		c = typecheck.DefaultLit(ir.NewInt(base.Pos, size), types.Types[types.TUINTPTR])
    		setField("size", c, i)
    		// Assign globals[i].sizeWithRedzone.
    		rzSize := GetRedzoneSizeForGlobal(size)
    		sizeWithRz := rzSize + size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/secondClassContextReceiver.ir.txt

              BLOCK type=kotlin.Int origin=null
                CALL 'public final fun useWithCtx2 ($context_receiver_0: <root>.Ctx2): kotlin.Int declared in <root>.ContextKt' type=kotlin.Int origin=null
                  $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField1 type:<root>.Ctx2 visibility:private [final] declared in <root>.Test' type=<root>.Ctx2 origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Apr 26 06:04:06 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/inlineFunctionUsageSource.ir.txt

          BLOCK_BODY
            CALL 'public open fun println (p0: kotlin.Int): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 30 10:27:47 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/singleClassContextReceiver.ir.txt

              BLOCK type=kotlin.Int origin=null
                CALL 'public final fun useWithCtx1 ($context_receiver_0: <root>.Ctx1): kotlin.Int declared in <root>.ContextKt' type=kotlin.Int origin=null
                  $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:<root>.Ctx1 visibility:private [final] declared in <root>.Test' type=<root>.Ctx1 origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Apr 26 06:04:06 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. pkg/volume/validation/pv_validation.go

    		return allErrs
    	}
    	// any other type if mount option is present lets return error
    	if _, ok := pv.Annotations[api.MountOptionAnnotation]; ok {
    		metaField := field.NewPath("metadata")
    		allErrs = append(allErrs, field.Forbidden(metaField.Child("annotations", api.MountOptionAnnotation), "may not specify mount options for this volume type"))
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.ir.txt

                BLOCK_BODY
                  RETURN type=kotlin.Nothing from='public final fun <get-firstValue> (): kotlin.Int declared in <root>.Operation.Add'
                    GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:firstValue type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Apr 04 09:35:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go

    			for _, metaField := range []string{"kind", "apiVersion", "metadata"} {
    				if _, found := got.schema.Properties["kind"]; found {
    					prop := got.schema.Properties[metaField]
    					prop.Description = ""
    					got.schema.Properties[metaField] = prop
    				}
    			}
    
    			if !reflect.DeepEqual(&wantedSchema, got.schema) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

                    final Resource annotation = fieldDesc.getField().getAnnotation(Resource.class);
                    if (annotation != null) {
                        final Object injected = container.getComponent(fieldDesc.getFieldName());
                        if (injected != null) {
                            FieldUtil.set(fieldDesc.getField(), component, injected);
                        }
                    }
                }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top